mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-16 02:47:36 +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