summaryrefslogtreecommitdiff
path: root/saveload.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-10-28 10:55:59 +0000
committertron <tron@openttd.org>2006-10-28 10:55:59 +0000
commit953344fdccabf547946eede684e588226f2c080e (patch)
tree8b0e233f3a0470fc60d6453aee27da317a3f2692 /saveload.c
parentef862a2973c0aa13932edc5d446ed04f7ad110c9 (diff)
downloadopenttd-953344fdccabf547946eede684e588226f2c080e.tar.xz
(svn r6975) Use the pool macros for the Vehicle pool
Diffstat (limited to 'saveload.c')
-rw-r--r--saveload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/saveload.c b/saveload.c
index 2f837e886..a1bea9dd4 100644
--- a/saveload.c
+++ b/saveload.c
@@ -1253,7 +1253,7 @@ static void *IntToReference(uint index, SLRefType rt)
return GetOrder(index);
}
case REF_VEHICLE: {
- if (!AddBlockIfNeeded(&_vehicle_pool, index))
+ if (!AddBlockIfNeeded(&_Vehicle_pool, index))
error("Vehicles: failed loading savegame: too many vehicles");
return GetVehicle(index);
}
@@ -1286,7 +1286,7 @@ static void *IntToReference(uint index, SLRefType rt)
if (index == INVALID_VEHICLE)
return NULL;
- if (!AddBlockIfNeeded(&_vehicle_pool, index))
+ if (!AddBlockIfNeeded(&_Vehicle_pool, index))
error("Vehicles: failed loading savegame: too many vehicles");
return GetVehicle(index);
}