1
0
Fork 0

Fix #13925, 667d0137: Ancient NewGRF have empty name and description, show the filename instead.

pull/13932/head
frosch 2025-03-31 12:40:11 +02:00
parent 0055e168f0
commit 2859eacd35
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ void GRFConfig::CopyParams(const GRFConfig &src)
std::string GRFConfig::GetName() const std::string GRFConfig::GetName() const
{ {
auto name = GetGRFStringFromGRFText(this->name); auto name = GetGRFStringFromGRFText(this->name);
return name.has_value() ? std::string(*name) : this->filename; return name.has_value() && !name->empty() ? std::string(*name) : this->filename;
} }
/** /**