1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix stop on flight for timer

This commit is contained in:
nordsoft 2023-08-27 00:30:05 +04:00
parent de8bd48398
commit 86ab97c64f

View File

@ -1183,7 +1183,7 @@ bool CGameHandler::moveHero(ObjectInstanceID hid, int3 dst, ui8 teleporting, boo
{
moveQuery = std::dynamic_pointer_cast<CHeroMovementQuery>(topQuery);
if(moveQuery
&& (!transit || result == TryMoveHero::FAILED || moveQuery->tmh.stopMovement()))
&& (!transit || result != TryMoveHero::SUCCESS))
queries->popIfTop(moveQuery);
else
break;