1
0
Fork 0

Fix #13759: Really don't set error owner to OWNER_TOWN. (#13761)

pull/13764/head
Peter Nelson 2025-03-07 23:35:28 +00:00 committed by GitHub
parent 49c760a472
commit 2c211630cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ CommandCost CheckOwnership(Owner owner, TileIndex tile)
if (IsLocalCompany()) {
auto params = GetParamsForOwnedBy(owner, tile);
error.SetEncodedMessage(GetEncodedStringWithArgs(STR_ERROR_OWNED_BY, params));
error.SetErrorOwner(owner);
if (owner != OWNER_TOWN) error.SetErrorOwner(owner);
}
return error;
}