1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

Fix spellcast cancelation in battle

This commit is contained in:
Ivan Savenko
2023-05-30 19:16:50 +03:00
parent 0e36a3ab5a
commit 1cec6918a0
3 changed files with 4 additions and 8 deletions

View File

@ -971,6 +971,9 @@ void BattleActionsController::activateStack()
void BattleActionsController::onHexRightClicked(BattleHex clickedHex)
{
if (spellcastingModeActive())
endCastingSpell();
auto selectedStack = owner.curInt->cb->battleGetStackByPos(clickedHex, true);
if (selectedStack != nullptr)