mirror of https://github.com/OpenTTD/OpenTTD
Fix #13759: Really don't set error owner to OWNER_TOWN.
parent
49c760a472
commit
276933f8c8
|
@ -366,7 +366,7 @@ CommandCost CheckOwnership(Owner owner, TileIndex tile)
|
||||||
if (IsLocalCompany()) {
|
if (IsLocalCompany()) {
|
||||||
auto params = GetParamsForOwnedBy(owner, tile);
|
auto params = GetParamsForOwnedBy(owner, tile);
|
||||||
error.SetEncodedMessage(GetEncodedStringWithArgs(STR_ERROR_OWNED_BY, params));
|
error.SetEncodedMessage(GetEncodedStringWithArgs(STR_ERROR_OWNED_BY, params));
|
||||||
error.SetErrorOwner(owner);
|
if (owner != OWNER_TOWN) error.SetErrorOwner(owner);
|
||||||
}
|
}
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue