diff options
author | rubidium <rubidium@openttd.org> | 2009-07-13 09:15:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-13 09:15:11 +0000 |
commit | be56fa3217b1ebe53dfefb0ee9109c9397fea31f (patch) | |
tree | fed481412a3bc55097c93f3c915f9e7fd6795382 /src | |
parent | 7ca86b8b6283f1f75ebff109b097334fda7078f2 (diff) | |
download | openttd-be56fa3217b1ebe53dfefb0ee9109c9397fea31f.tar.xz |
(svn r16801) -Fix [FS#3022]: cargo payments weren't destroyed when a vehicle was destructed. This only happened when you crashed a vehicle while it was unloading.
Diffstat (limited to 'src')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 34ad91492..bed1d0fcc 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -497,6 +497,8 @@ void Vehicle::PreDestructor() Station::Get(this->last_station_visited)->loading_vehicles.remove(this); HideFillingPercent(&this->fill_percent_te_id); + + delete this->cargo_payment; } if (IsEngineCountable(this)) { |