1
0
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:
AlexVinS 2017-05-28 14:39:36 +03:00
parent 1c95c51ffb
commit f5cdaece6f

View File

@ -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;