1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

fix mantiss 0002147

This commit is contained in:
AlexVinS
2015-04-13 16:48:46 +03:00
parent 11b3426bea
commit b347fe5457

View File

@@ -268,9 +268,10 @@ ESpellCastResult ViewMechanics::applyAdventureEffects(const SpellCastEnvironment
for(const CGObjectInstance * obj : env->getMap()->objects)
{
//todo:we need to send only not visible objects
if(filterObject(obj, spellLevel))
pack.objectPositions.push_back(ObjectPosInfo(obj));
if(obj)//for some reason deleted object remain as empty pointer
if(filterObject(obj, spellLevel))
pack.objectPositions.push_back(ObjectPosInfo(obj));
}
env->sendAndApply(&pack);