summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-02-09 12:20:50 +0000
committersmatz <smatz@openttd.org>2008-02-09 12:20:50 +0000
commita7b786f143b0a4a8cdf94f9fbea5ed92048760c6 (patch)
tree84eb1b2c4e583d619fe3ffec3f8c53bdadf668d0 /src
parent83de4db1c00633a82547b24bde27a599131b2b6f (diff)
downloadopenttd-a7b786f143b0a4a8cdf94f9fbea5ed92048760c6.tar.xz
(svn r12093) -Fix: do not set station owner for buoys when merging company
Diffstat (limited to 'src')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 1762fc754..5d29fbf9e 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2887,7 +2887,7 @@ static void ChangeTileOwner_Station(TileIndex tile, PlayerID old_player, PlayerI
Station* st = GetStationByTile(tile);
SetTileOwner(tile, new_player);
- st->owner = new_player;
+ if (!IsBuoy(tile)) st->owner = new_player; // do not set st->owner for buoys
RebuildStationLists();
InvalidateWindowClasses(WC_STATION_LIST);
} else {