forked from mirror/OpenTTD
(svn r25008) -Codechange: Make CargoList::Truncate behave similarly to CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen)
This commit is contained in:
@@ -769,7 +769,7 @@ void Vehicle::PreDestructor()
|
||||
}
|
||||
InvalidateWindowClassesData(GetWindowClassForVehicleType(this->type), 0);
|
||||
|
||||
this->cargo.Truncate(0);
|
||||
this->cargo.Truncate();
|
||||
DeleteVehicleOrders(this);
|
||||
DeleteDepotHighlightOfVehicle(this);
|
||||
|
||||
|
Reference in New Issue
Block a user