diff options
author | rubidium <rubidium@openttd.org> | 2013-02-17 14:10:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-02-17 14:10:15 +0000 |
commit | 2795ed5b091fa5580976547b3669bac78cd595ce (patch) | |
tree | 9b0d3c0b5444157729363fc0323b6a2236e53d49 /src/vehicle.cpp | |
parent | 6647cb917963c4e0d6d633b7a92af78167050893 (diff) | |
download | openttd-2795ed5b091fa5580976547b3669bac78cd595ce.tar.xz |
(svn r25008) -Codechange: Make CargoList::Truncate behave similarly to CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen)
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 2f11421d6..11269db5c 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -769,7 +769,7 @@ void Vehicle::PreDestructor() } InvalidateWindowClassesData(GetWindowClassForVehicleType(this->type), 0); - this->cargo.Truncate(0); + this->cargo.Truncate(); DeleteVehicleOrders(this); DeleteDepotHighlightOfVehicle(this); |