From 3fdac6f702b0a2e8534b8f1c26faba02118ed8df Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 26 Feb 2009 14:07:42 +0000 Subject: (svn r15588) -Fix: change owner of waypoints and deleted stations when merging companies or when a company benkrupts --- src/station_cmd.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/station_cmd.cpp') diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 8c3b1c737..1e19cc55d 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -3120,10 +3120,8 @@ static void ChangeTileOwner_Station(TileIndex tile, Owner old_owner, Owner new_o if (!IsTileOwner(tile, old_owner)) return; if (new_owner != INVALID_OWNER) { - Station *st = GetStationByTile(tile); - + /* for buoys, owner of tile is owner of water, st->owner == OWNER_NONE */ SetTileOwner(tile, new_owner); - if (!IsBuoy(tile)) st->owner = new_owner; // do not set st->owner for buoys InvalidateWindowClassesData(WC_STATION_LIST, 0); } else { if (IsDriveThroughStopTile(tile)) { -- cgit v1.2.3-54-g00ecf