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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user