Explorar o código

Fixed CID 1375687

AlexVinS %!s(int64=8) %!d(string=hai) anos
pai
achega
f5cdaece6f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/battle/CBattleAnimations.cpp

+ 1 - 1
client/battle/CBattleAnimations.cpp

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