forked from mirror/openmw-tes3mp
Don't apply constant magic effects to dead actors (Fixes #3174)
This commit is contained in:
parent
8360cccce7
commit
c403a6b113
1 changed files with 3 additions and 0 deletions
|
@ -345,6 +345,9 @@ void MWWorld::InventoryStore::updateMagicEffects(const Ptr& actor)
|
||||||
|
|
||||||
mMagicEffects = MWMechanics::MagicEffects();
|
mMagicEffects = MWMechanics::MagicEffects();
|
||||||
|
|
||||||
|
if (actor.getClass().getCreatureStats(actor).isDead())
|
||||||
|
return;
|
||||||
|
|
||||||
for (TSlots::const_iterator iter (mSlots.begin()); iter!=mSlots.end(); ++iter)
|
for (TSlots::const_iterator iter (mSlots.begin()); iter!=mSlots.end(); ++iter)
|
||||||
{
|
{
|
||||||
if (*iter==end())
|
if (*iter==end())
|
||||||
|
|
Loading…
Reference in a new issue