Don't set magic effects for dead actors (Fixes #1783)

deque
scrawl 11 years ago
parent 4138c3e966
commit fcd2a9e4d5

@ -344,7 +344,8 @@ namespace MWMechanics
void Actors::adjustMagicEffects (const MWWorld::Ptr& creature)
{
CreatureStats& creatureStats = creature.getClass().getCreatureStats (creature);
if (creatureStats.isDead())
return;
MagicEffects now = creatureStats.getSpells().getMagicEffects();
if (creature.getTypeName()==typeid (ESM::NPC).name())

Loading…
Cancel
Save