mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 09:29:10 +00:00
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user