1
0
Fork 0

Fix #13621: Incorrect Owner text in land area info. (#13622)

An if-condition was accidentally inverted in 2d7d085e8e, and an empty parameter is required.
pull/13624/head
Peter Nelson 2025-02-19 09:14:03 +00:00 committed by GitHub
parent f4b75213d8
commit 3d5083218d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -185,8 +185,8 @@ public:
for (uint i = 0; i < 4; i++) {
if (td.owner_type[i] == STR_NULL) continue;
if (td.owner[i] != OWNER_NONE && td.owner[i] != OWNER_WATER) {
this->landinfo_data.push_back(GetString(td.owner_type[i], STR_LAND_AREA_INFORMATION_OWNER_N_A));
if (td.owner[i] == OWNER_NONE || td.owner[i] == OWNER_WATER) {
this->landinfo_data.push_back(GetString(td.owner_type[i], STR_LAND_AREA_INFORMATION_OWNER_N_A, std::monostate{}));
} else {
auto params = GetParamsForOwnedBy(td.owner[i], tile);
this->landinfo_data.push_back(GetStringWithArgs(td.owner_type[i], params));