From bd68ebac626de076b546e0c3174dca438a5fb25c Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 8 Dec 2015 15:24:02 +0100 Subject: [PATCH] GetEffect fix --- apps/openmw/mwscript/miscextensions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwscript/miscextensions.cpp b/apps/openmw/mwscript/miscextensions.cpp index 68a30de4a..8375cf8ae 100644 --- a/apps/openmw/mwscript/miscextensions.cpp +++ b/apps/openmw/mwscript/miscextensions.cpp @@ -425,7 +425,7 @@ namespace MWScript const MWMechanics::MagicEffects& effects = ptr.getClass().getCreatureStats(ptr).getMagicEffects(); for (MWMechanics::MagicEffects::Collection::const_iterator it = effects.begin(); it != effects.end(); ++it) { - if (it->first.mId == key) + if (it->first.mId == key && it->second.getModifier() > 0) { runtime.push(1); return;