(svn r12093) -Fix: do not set station owner for buoys when merging company
authorsmatz
Sat, 09 Feb 2008 12:20:50 +0000
changeset 9014 223a4ddb80bb
parent 9013 a1e323756e1d
child 9015 4a44c6974ac1
(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 {