You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
} else if (IsTileType(tile, MP_INDUSTRY)) {
UpdateStationDockingTiles(Industry::GetByTile(tile)->neutral_station);
}
Industry::GetByTile(tile)->neutral_station` is null in this case and UpdateStationDockingTiles requires a non-null pointer
The text was updated successfully, but these errors were encountered:
JGRennison
changed the title
RemoveDockingTile
NUll pointer dereference in RemoveDockingTile when adjacent to industry
Sep 9, 2019
JGRennison
changed the title
NUll pointer dereference in RemoveDockingTile when adjacent to industry
Null pointer dereference in RemoveDockingTile when adjacent to industry
Sep 9, 2019
Version of OpenTTD
Since f538179
Expected result
No null pointer dereference
Actual result
Null pointer dereference when RemoveDockingTile is called on a tile directly adjacent to an industry tile without an associated neutral station
Steps to reproduce
Clear a docking tile directly adjacent to an industry tile without an associated neutral station
See: Docking Tile Removal Bug Ltd, 1945-01-17.sav.zip
In RemoveDockingTile:
Industry::GetByTile(tile)->neutral_station` is null in this case and UpdateStationDockingTiles requires a non-null pointer
The text was updated successfully, but these errors were encountered: