diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/station_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 4519eba56..636b1c476 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2607,7 +2607,8 @@ void RemoveDockingTile(TileIndex t) if (IsTileType(tile, MP_STATION)) { UpdateStationDockingTiles(Station::GetByTile(tile)); } else if (IsTileType(tile, MP_INDUSTRY)) { - UpdateStationDockingTiles(Industry::GetByTile(tile)->neutral_station); + Station *neutral = Industry::GetByTile(tile)->neutral_station; + if (neutral != nullptr) UpdateStationDockingTiles(neutral); } } } |