(svn r19315) -Fix (r19295): Show the filename in the newgrf windows if the newgrf name is not empty

pull/155/head
yexo 15 years ago
parent 5f5eb51c57
commit ce7a0304f5

@ -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;
}

Loading…
Cancel
Save