summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vehicle.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index bbc370b7a..1513837b3 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -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.
}