summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-03-04 20:07:39 +0000
committeryexo <yexo@openttd.org>2010-03-04 20:07:39 +0000
commit4d5125f0c4849c481bff00ada51e4f236c466ea1 (patch)
tree93c609f3801fb0f3d452c3b91028a5809d651e55
parent4ddcd2ebc2a1df0190ab63509984b34fec808097 (diff)
downloadopenttd-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.cpp2
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;
}