Reset queued command when closing windows that can queue them.

This commit is contained in:
Juanjo
2013-10-14 17:49:14 +00:00
committed by pelya
parent 02caad7c1b
commit b164486616
6 changed files with 13 additions and 1 deletions
+3 -1
View File
@@ -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);
}