summaryrefslogtreecommitdiff
path: root/src/newgrf_config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_config.cpp')
-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;
}