1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Check for end-of-battle after opening spells are cast, fixes potentially

infinite battle
This commit is contained in:
Ivan Savenko 2022-12-02 21:38:59 +02:00
parent 1248292503
commit 848454d48a

View File

@ -6642,6 +6642,8 @@ void CGameHandler::runBattle()
} }
} }
} }
// it is possible that due to opening spells one side was eliminated -> check for end of battle
checkBattleStateChanges();
bool firstRound = true;//FIXME: why first round is -1? bool firstRound = true;//FIXME: why first round is -1?