mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(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:
parent
8bb45a35c1
commit
5fe30de455
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user