mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-29 15:14:33 +01:00
Codechange: replace 'new PoolItem(...' with 'PoolItem::Create(...'
This commit is contained in:
@@ -1259,7 +1259,7 @@ void PrepareUnload(Vehicle *front_v)
|
||||
* limit in number of CargoPayments. Can't go wrong. */
|
||||
static_assert(CargoPaymentPool::MAX_SIZE == VehiclePool::MAX_SIZE);
|
||||
assert(CargoPayment::CanAllocateItem());
|
||||
front_v->cargo_payment = new CargoPayment(front_v);
|
||||
front_v->cargo_payment = CargoPayment::Create(front_v);
|
||||
|
||||
std::vector<StationID> next_station;
|
||||
front_v->GetNextStoppingStation(next_station);
|
||||
|
||||
Reference in New Issue
Block a user