mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Fixed CID 1375687
This commit is contained in:
parent
1c95c51ffb
commit
f5cdaece6f
@ -123,7 +123,7 @@ bool CAttackAnimation::checkInitialConditions()
|
||||
CBattleStackAnimation * stAnim = dynamic_cast<CBattleStackAnimation *>(elem.first);
|
||||
CReverseAnimation * revAnim = dynamic_cast<CReverseAnimation *>(stAnim);
|
||||
|
||||
if(revAnim) // enemy must be fully reversed
|
||||
if(revAnim && attackedStack) // enemy must be fully reversed
|
||||
{
|
||||
if (revAnim->stack->ID == attackedStack->ID)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user