From 3d5083218d4abf74514233ef1ce4eb83705537d0 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 19 Feb 2025 09:14:03 +0000 Subject: [PATCH] Fix #13621: Incorrect Owner text in land area info. (#13622) An if-condition was accidentally inverted in 2d7d085e8e, and an empty parameter is required. --- src/misc_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index e1404197f0..aac5cd3dec 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -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));