Reset queued command when closing windows that can queue them.
This commit is contained in:
+3
-1
@@ -28,6 +28,7 @@
|
||||
#include "hotkeys.h"
|
||||
#include "vehicle_func.h"
|
||||
#include "gui.h"
|
||||
#include "command_func.h"
|
||||
|
||||
#include "widgets/airport_widget.h"
|
||||
|
||||
@@ -142,7 +143,7 @@ struct BuildAirToolbarWindow : Window {
|
||||
|
||||
DeleteWindowById(WC_BUILD_STATION, TRANSPORT_AIR);
|
||||
DeleteWindowById(WC_SELECT_STATION, 0);
|
||||
|
||||
EraseQueuedTouchCommand();
|
||||
ResetObjectToPlace();
|
||||
}
|
||||
|
||||
@@ -243,6 +244,7 @@ public:
|
||||
|
||||
virtual ~BuildAirportWindow()
|
||||
{
|
||||
EraseQueuedTouchCommand();
|
||||
DeleteWindowById(WC_SELECT_STATION, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user