Codechange: remove parameter from VehicleCargoList::Reassign that is always INVALID_STATION
(cherry picked from commit a0f6983be4
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
f5d685a525
commit
2037587c7c
@@ -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) {
|
||||
|
Reference in New Issue
Block a user