(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.

This commit is contained in:
rubidium 2009-07-13 09:15:11 +00:00
parent 7ca86b8b62
commit be56fa3217
1 changed files with 2 additions and 0 deletions

View File

@ -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)) {