diff options
author | truelight <truelight@openttd.org> | 2005-02-04 13:23:29 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-02-04 13:23:29 +0000 |
commit | f183ca5cc298ae220f377d83f7da43379cdf1bdb (patch) | |
tree | 512961ac36580ababc52512c67235f48f4bef8c8 /oldloader.c | |
parent | 3153924ad16812a61abb920247576a4053912b16 (diff) | |
download | openttd-f183ca5cc298ae220f377d83f7da43379cdf1bdb.tar.xz |
(svn r1783) -Add: Dynamic vehicles (now up to 64k of vehicles)
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; |