diff --git a/client/CBattleInterface.cpp b/client/CBattleInterface.cpp index 7957fa507..b689a6f2f 100644 --- a/client/CBattleInterface.cpp +++ b/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) { diff --git a/client/Client.cpp b/client/Client.cpp index b3a2616ed..a46405983 100644 --- a/client/Client.cpp +++ b/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; }