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

(cherry picked from commit a0f6983be4)
This commit is contained in:
Patric Stout
2023-09-10 22:34:02 +02:00
committed by Jonathan G Rennison
parent f5d685a525
commit 2037587c7c
3 changed files with 6 additions and 7 deletions

View File

@@ -2089,7 +2089,7 @@ static void LoadUnloadVehicle(Vehicle *front)
if (GetUnloadType(v) & (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) {