mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Fix #8132: Corrupted savegame crashing OpenTTD on load
This commit is contained in:
parent
0ed00ae111
commit
5aa6351042
@ -898,6 +898,9 @@ bool AfterLoadGame()
|
|||||||
case MP_STATION: {
|
case MP_STATION: {
|
||||||
BaseStation *bst = BaseStation::GetByTile(t);
|
BaseStation *bst = BaseStation::GetByTile(t);
|
||||||
|
|
||||||
|
/* Sanity check */
|
||||||
|
if (bst->owner != GetTileOwner(t)) SlErrorCorrupt("Wrong owner for station tile");
|
||||||
|
|
||||||
/* Set up station spread */
|
/* Set up station spread */
|
||||||
bst->rect.BeforeAddTile(t, StationRect::ADD_FORCE);
|
bst->rect.BeforeAddTile(t, StationRect::ADD_FORCE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user