diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp --- 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; }