From 8caa800ee1b101d8624810a16234a1e93c545a4d Mon Sep 17 00:00:00 2001 From: pavanvo Date: Tue, 16 Aug 2022 22:00:31 +0400 Subject: [PATCH] fix: reset command position for non-target commands --- source/glest_game/gui/gui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/glest_game/gui/gui.cpp b/source/glest_game/gui/gui.cpp index 2d80ac1d..05bc4b63 100644 --- a/source/glest_game/gui/gui.cpp +++ b/source/glest_game/gui/gui.cpp @@ -479,6 +479,8 @@ void Gui::giveOneClickOrders(){ addOrdersResultToConsole(activeCommandClass, result); activeCommandType= NULL; activeCommandClass= ccStop; + selectingPos= false; + activePos= invalidPos; } void Gui::giveDefaultOrders(int x, int y) {