diff options
author | yexo <yexo@openttd.org> | 2010-03-04 20:07:39 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-03-04 20:07:39 +0000 |
commit | 4d5125f0c4849c481bff00ada51e4f236c466ea1 (patch) | |
tree | 93c609f3801fb0f3d452c3b91028a5809d651e55 | |
parent | 4ddcd2ebc2a1df0190ab63509984b34fec808097 (diff) | |
download | openttd-4d5125f0c4849c481bff00ada51e4f236c466ea1.tar.xz |
(svn r19315) -Fix (r19295): Show the filename in the newgrf windows if the newgrf name is not empty
-rw-r--r-- | src/newgrf_config.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp index 16cb8b8ac..af7a63d7e 100644 --- a/src/newgrf_config.cpp +++ b/src/newgrf_config.cpp @@ -43,7 +43,7 @@ GRFConfig::~GRFConfig() */ const char *GRFConfig::GetName() const { - if (this->name == NULL) return this->filename; + if (StrEmpty(this->name)) return this->filename; return this->name; } |