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:
parent
de8bd48398
commit
86ab97c64f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user