diff options
author | rubidium <rubidium@openttd.org> | 2007-08-03 19:36:00 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-03 19:36:00 +0000 |
commit | 836105864c840469cbaea7776fe376a2008d72fc (patch) | |
tree | ea92676733322e0fc10f54254112dd92b294ebfb /src/aircraft_cmd.cpp | |
parent | aa9869e2de9117bbe0203aa1485ae6b5acac6f03 (diff) | |
download | openttd-836105864c840469cbaea7776fe376a2008d72fc.tar.xz |
(svn r10770) -Codechange: use the pool item class as super class for the vehicle struct.
-Codechange: do not force "special" vehicles to be allocated in the low 1024 vehicle slots and non "special" vehicles in the rest of the slots.
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index d12114d3f..b21448786 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -287,7 +287,7 @@ CommandCost CmdBuildAircraft(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) /* Allocate 2 or 3 vehicle structs, depending on type * vl[0] = aircraft, vl[1] = shadow, [vl[2] = rotor] */ Vehicle *vl[3]; - if (!AllocateVehicles(vl, avi->subtype & AIR_CTOL ? 2 : 3)) { + if (!Vehicle::AllocateList(vl, avi->subtype & AIR_CTOL ? 2 : 3)) { return_cmd_error(STR_00E1_TOO_MANY_VEHICLES_IN_GAME); } |