1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-13 13:18:43 +02:00

Fix retreating in player-with-player battles

This commit is contained in:
Ivan Savenko 2023-08-24 18:48:15 +03:00
parent a19cdb57ba
commit b6d8c7d4a5

View File

@ -219,7 +219,7 @@ void BattleProcessor::updateGateState()
bool BattleProcessor::makePlayerBattleAction(PlayerColor player, const BattleAction &ba)
{
bool result = actionsProcessor->makePlayerBattleAction(player, ba);
if (!resultProcessor->battleIsEnding())
if (!resultProcessor->battleIsEnding() && gameHandler->gameState()->curB != nullptr)
flowProcessor->onActionMade(ba);
return result;
}