Improve performance of departures window

See: #119
This commit is contained in:
Jonathan G Rennison
2019-12-17 22:47:16 +00:00
parent abfb141afd
commit ec0b5e0ed0
7 changed files with 130 additions and 95 deletions

View File

@@ -1009,6 +1009,7 @@ void Vehicle::PreDestructor()
OrderBackup::ClearVehicle(this);
}
InvalidateWindowClassesData(GetWindowClassForVehicleType(this->type), 0);
InvalidateWindowClassesData(WC_DEPARTURES_BOARD, 0);
this->cargo.Truncate();
DeleteVehicleOrders(this);