(svn r12093) -Fix: do not set station owner for buoys when merging company
authorsmatz
Sat, 09 Feb 2008 12:20:50 +0000
changeset 8518 9f64c88bb3e9
parent 8517 a185893bcb61
child 8519 fe61d7aa3053
(svn r12093) -Fix: do not set station owner for buoys when merging company
src/station_cmd.cpp
--- a/src/station_cmd.cpp	Sat Feb 09 03:12:05 2008 +0000
+++ b/src/station_cmd.cpp	Sat Feb 09 12:20:50 2008 +0000
@@ -2887,7 +2887,7 @@
 		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 {