mirror of https://github.com/OpenTTD/OpenTTD
(svn r19315) -Fix (r19295): Show the filename in the newgrf windows if the newgrf name is not empty
parent
4ddcd2ebc2
commit
4d5125f0c4
|
@ -43,7 +43,7 @@ GRFConfig::~GRFConfig()
|
||||||
*/
|
*/
|
||||||
const char *GRFConfig::GetName() const
|
const char *GRFConfig::GetName() const
|
||||||
{
|
{
|
||||||
if (this->name == NULL) return this->filename;
|
if (StrEmpty(this->name)) return this->filename;
|
||||||
return this->name;
|
return this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue