From 22a2abd3f4a4fd4ed08aba608133f02065f90fcf Mon Sep 17 00:00:00 2001 From: pavanvo Date: Mon, 5 Sep 2022 18:13:50 +0400 Subject: [PATCH] fix: non-targed commands --- source/glest_game/gui/gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/gui/gui.cpp b/source/glest_game/gui/gui.cpp index 1f9c80b3..8bfae43e 100644 --- a/source/glest_game/gui/gui.cpp +++ b/source/glest_game/gui/gui.cpp @@ -718,7 +718,7 @@ void Gui::mouseDownDisplayUnitSkills(int posDisplay) { ct = selection.getUnitFromCC(ccAttack)->getType()->getFirstCtOfClass(activeCommandClass); } auto mct= unit->getCurrMorphCt(); - if(mct) ct= mct->getMorphUnit()->getFirstCtOfClass(activeCommandClass); + if(mct && isKeyDown(queueCommandKey)) ct= mct->getMorphUnit()->getFirstCtOfClass(activeCommandClass); if(activeCommandType!=NULL && activeCommandType->getClass()==ccBuild){ assert(selection.isUniform());