mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 15:30:00 +00:00
(svn r24219) -Fix [FS#5152]: immediately do the cargo payment on vehicle crashes instead of when they are cleared
This commit is contained in:
parent
334c0e897c
commit
5bfed864a0
@ -200,6 +200,9 @@ uint Vehicle::Crash(bool flooded)
|
||||
SetWindowDirty(WC_VEHICLE_DETAILS, this->index);
|
||||
SetWindowDirty(WC_VEHICLE_DEPOT, this->tile);
|
||||
|
||||
delete this->cargo_payment;
|
||||
this->cargo_payment = NULL;
|
||||
|
||||
return RandomRange(pass + 1); // Randomise deceased passengers.
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user