浏览代码

Applied patch from #749

DjWarmonger 14 年之前
父节点
当前提交
361e58eddb
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      client/CBattleInterface.cpp
  2. 1 1
      client/Client.cpp

+ 1 - 1
client/CBattleInterface.cpp

@@ -4008,7 +4008,7 @@ CBattleHero::~CBattleHero()
 Point CBattleHex::getXYUnitAnim(const int & hexNum, const bool & attacker, const CStack * stack, const CBattleInterface * cbi)
 {
 	Point ret(-500, -500); //returned value
-	if(stack->position < 0) //creatures in turrets
+	if(stack && stack->position < 0) //creatures in turrets
 	{
 		switch(stack->position)
 		{

+ 1 - 1
client/Client.cpp

@@ -510,7 +510,7 @@ void CClient::handlePack( CPack * pack )
 	}
 	else
 	{
-		tlog1 << "Message cannot be applied, cannot find applier! TypeID " << typeList.getTypeID(pack) << std::endl;
+		tlog1 << "Message cannot be applied, cannot find applier! TypeID " << typeList.getTypeID(pack) << std::endl;
 	}
 	delete pack;
 }