forked from mirror/OpenTTD
(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.
This commit is contained in:
@@ -42,7 +42,7 @@ void AddArticulatedParts(Vehicle **vl, VehicleType type)
|
||||
/* Attempt to use pre-allocated vehicles until they run out. This can happen
|
||||
* if the callback returns different values depending on the cargo type. */
|
||||
u->next = vl[i];
|
||||
if (u->next == NULL) u->next = AllocateVehicle();
|
||||
if (u->next == NULL) u->next = new InvalidVehicle();
|
||||
if (u->next == NULL) return;
|
||||
|
||||
u = u->next;
|
||||
|
Reference in New Issue
Block a user