浏览代码

* 437 fixed

mateuszb 15 年之前
父节点
当前提交
658a560698
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      client/CBattleInterface.cpp

+ 5 - 0
client/CBattleInterface.cpp

@@ -559,6 +559,11 @@ bool CBattleStackMoved::init()
 
 
 	//a few useful variables
 	//a few useful variables
 	steps = owner->creAnims[stackID]->framesInGroup(0)*owner->getAnimSpeedMultiplier()-1;
 	steps = owner->creAnims[stackID]->framesInGroup(0)*owner->getAnimSpeedMultiplier()-1;
+	if(steps == 0) //this creature seems to have no move animation so we can end it immediately
+	{
+		endAnim();
+		return false;
+	}
 	whichStep = 0;
 	whichStep = 0;
 	int hexWbase = 44, hexHbase = 42;
 	int hexWbase = 44, hexHbase = 42;
 	const CStack * movedStack = owner->curInt->cb->battleGetStackByID(stackID, false);
 	const CStack * movedStack = owner->curInt->cb->battleGetStackByID(stackID, false);