From 4d5125f0c4849c481bff00ada51e4f236c466ea1 Mon Sep 17 00:00:00 2001 From: yexo Date: Thu, 4 Mar 2010 20:07:39 +0000 Subject: (svn r19315) -Fix (r19295): Show the filename in the newgrf windows if the newgrf name is not empty --- src/newgrf_config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-70-g09d2