Codechange: Return name, description and URL as std::string from GRFConfig. (#13868)

This commit is contained in:
frosch
2025-03-22 20:30:40 +01:00
committed by GitHub
parent ae2d7947d7
commit 667d013726
5 changed files with 26 additions and 22 deletions

View File

@@ -262,8 +262,8 @@ public:
}
/* NewGRF name */
if (td.grf != nullptr) {
this->landinfo_data.push_back(GetString(STR_LAND_AREA_INFORMATION_NEWGRF_NAME, td.grf));
if (td.grf.has_value()) {
this->landinfo_data.push_back(GetString(STR_LAND_AREA_INFORMATION_NEWGRF_NAME, std::move(*td.grf)));
}
/* Cargo acceptance is displayed in a extra multiline */