Codechange: remove parameter from VehicleCargoList::Reassign that is always INVALID_STATION

This commit is contained in:
Patric Stout
2023-09-10 22:34:02 +02:00
committed by Patric Stout
parent 6643c010bd
commit a0f6983be4
3 changed files with 6 additions and 7 deletions

View File

@@ -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) {