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 4ad72a72f..ad7455c4e 100644 --- a/oldloader.c +++ b/oldloader.c @@ -797,6 +797,9 @@ static void FixVehicle(OldVehicle *o, int num) if (o->type == 0) continue; + if (!AddBlockIfNeeded(&_vehicle_pool, i)) + error("Vehicles: failed loading savegame: too many vehicles"); + n = GetVehicle(i); n->type = o->type; |