mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r12093) -Fix: do not set station owner for buoys when merging company
This commit is contained in:
parent
cebb86777a
commit
221494bd3f
@ -2887,7 +2887,7 @@ static void ChangeTileOwner_Station(TileIndex tile, PlayerID old_player, PlayerI
|
|||||||
Station* st = GetStationByTile(tile);
|
Station* st = GetStationByTile(tile);
|
||||||
|
|
||||||
SetTileOwner(tile, new_player);
|
SetTileOwner(tile, new_player);
|
||||||
st->owner = new_player;
|
if (!IsBuoy(tile)) st->owner = new_player; // do not set st->owner for buoys
|
||||||
RebuildStationLists();
|
RebuildStationLists();
|
||||||
InvalidateWindowClasses(WC_STATION_LIST);
|
InvalidateWindowClasses(WC_STATION_LIST);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user