From c403a6b113a371bc469656486d5ea113bafb60aa Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 1 Feb 2016 22:30:08 +0100 Subject: [PATCH] Don't apply constant magic effects to dead actors (Fixes #3174) --- apps/openmw/mwworld/inventorystore.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwworld/inventorystore.cpp b/apps/openmw/mwworld/inventorystore.cpp index 2c994f146..318b7c5ec 100644 --- a/apps/openmw/mwworld/inventorystore.cpp +++ b/apps/openmw/mwworld/inventorystore.cpp @@ -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())