1
0
Fork 0

Fix #13703: Don't set error owner for town-originated errors.

pull/13705/head
Peter Nelson 2025-03-02 21:18:13 +00:00
parent 7f674b09a4
commit c2f8ec8371
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 0 additions and 2 deletions

View File

@ -2517,7 +2517,6 @@ CommandCost CmdConvertRoad(DoCommandFlags flags, TileIndex tile, TileIndex area_
if (IsLocalCompany()) {
auto params = GetParamsForOwnedBy(OWNER_TOWN, tile);
error.SetEncodedMessage(GetEncodedStringWithArgs(STR_ERROR_OWNED_BY, params));
error.SetErrorOwner(owner);
}
continue;
}
@ -2574,7 +2573,6 @@ CommandCost CmdConvertRoad(DoCommandFlags flags, TileIndex tile, TileIndex area_
if (IsLocalCompany()) {
auto params = GetParamsForOwnedBy(OWNER_TOWN, tile);
error.SetEncodedMessage(GetEncodedStringWithArgs(STR_ERROR_OWNED_BY, params));
error.SetErrorOwner(owner);
}
continue;
}