Avoid iterating vehicle list to release disaster vehicles if there are none

This commit is contained in:
Jonathan G Rennison
2019-09-23 21:36:20 +01:00
parent 1391f8fc59
commit 9354b5c15c
2 changed files with 14 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ struct DisasterVehicle FINAL : public SpecializedVehicle<DisasterVehicle, VEH_DI
DisasterVehicle();
DisasterVehicle(int x, int y, Direction direction, DisasterSubType subtype, VehicleID big_ufo_destroyer_target = VEH_INVALID);
/** We want to 'destruct' the right class. */
virtual ~DisasterVehicle() {}
virtual ~DisasterVehicle();
void UpdatePosition(int x, int y, int z);
void UpdateDeltaXY();