mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Applied patch from #749
This commit is contained in:
parent
4b7d0f3092
commit
361e58eddb
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user