1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-16 11:09:11 +00:00

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

This commit is contained in:
2025-03-07 23:35:28 +00:00
committed by GitHub
parent 49c760a472
commit 2c211630cb

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;
}