From 52b3b329a41d197683dc3a4d1dfdcca189a41697 Mon Sep 17 00:00:00 2001 From: nordsoft Date: Tue, 1 Nov 2022 19:16:45 +0400 Subject: [PATCH] Fix [965] --- client/CPlayerInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/CPlayerInterface.cpp b/client/CPlayerInterface.cpp index 5d8c0be22..af40aa43f 100644 --- a/client/CPlayerInterface.cpp +++ b/client/CPlayerInterface.cpp @@ -925,13 +925,13 @@ BattleAction CPlayerInterface::activeStack(const CStack * stack) //called when i void CPlayerInterface::battleEnd(const BattleResult *br) { EVENT_HANDLER_CALLED_BY_CLIENT; - if (isAutoFightOn) + if(isAutoFightOn || autofightingAI) { isAutoFightOn = false; cb->unregisterBattleInterface(autofightingAI); autofightingAI.reset(); - if (!battleInt) + if(!battleInt) { GH.pushIntT(*br, *this); // #1490 - during AI turn when quick combat is on, we need to display the message and wait for user to close it.