mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 21:45:32 +00:00
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();
|
||||
|
||||
if (actor.getClass().getCreatureStats(actor).isDead())
|
||||
return;
|
||||
|
||||
for (TSlots::const_iterator iter (mSlots.begin()); iter!=mSlots.end(); ++iter)
|
||||
{
|
||||
if (*iter==end())
|
||||
|
|
Loading…
Reference in a new issue