diff options
Diffstat (limited to 'oldloader.c')
-rw-r--r-- | oldloader.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/oldloader.c b/oldloader.c index 6de0c483e..4ad72a72f 100644 --- a/oldloader.c +++ b/oldloader.c @@ -713,6 +713,9 @@ static void FixStation(OldStation *o, int num) if (o->xy == 0) continue; + if (!AddBlockIfNeeded(&_station_pool, i)) + error("Stations: failed loading savegame: too many stations"); + s = GetStation(i); s->xy = o->xy; |