Fix cases where departures board data was not invalidated

This commit is contained in:
Jonathan G Rennison
2020-03-09 08:51:15 +00:00
parent 749b9da602
commit cb6a01cab3
7 changed files with 21 additions and 0 deletions

View File

@@ -350,6 +350,7 @@ uint Vehicle::Crash(bool flooded)
SetWindowWidgetDirty(WC_VEHICLE_VIEW, this->index, WID_VV_START_STOP);
SetWindowDirty(WC_VEHICLE_DETAILS, this->index);
SetWindowDirty(WC_VEHICLE_DEPOT, this->tile);
InvalidateWindowClassesData(WC_DEPARTURES_BOARD, 0);
delete this->cargo_payment;
assert(this->cargo_payment == nullptr); // cleared by ~CargoPayment