summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
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
commit221494bd3fa26c47294424b4c53f28f494a38a53 (patch)
tree84eb1b2c4e583d619fe3ffec3f8c53bdadf668d0 /src/station_cmd.cpp
parentcebb86777ab56559938a51bfdb2a3188eb427d08 (diff)
downloadopenttd-221494bd3fa26c47294424b4c53f28f494a38a53.tar.xz
(svn r12093) -Fix: do not set station owner for buoys when merging company
Diffstat (limited to 'src/station_cmd.cpp')
-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 {