Codechange: remove parameter from VehicleCargoList::Reassign that is always INVALID_STATION
This commit is contained in:

committed by
Patric Stout

parent
6643c010bd
commit
a0f6983be4
@@ -1689,7 +1689,7 @@ static void LoadUnloadVehicle(Vehicle *front)
|
||||
if (front->current_order.GetUnloadType() & (OUFB_TRANSFER | OUFB_UNLOAD)) {
|
||||
/* Transfer instead of delivering. */
|
||||
v->cargo.Reassign<VehicleCargoList::MTA_DELIVER, VehicleCargoList::MTA_TRANSFER>(
|
||||
v->cargo.ActionCount(VehicleCargoList::MTA_DELIVER), INVALID_STATION);
|
||||
v->cargo.ActionCount(VehicleCargoList::MTA_DELIVER));
|
||||
} else {
|
||||
uint new_remaining = v->cargo.RemainingCount() + v->cargo.ActionCount(VehicleCargoList::MTA_DELIVER);
|
||||
if (v->cargo_cap < new_remaining) {
|
||||
|
Reference in New Issue
Block a user