From b94e09e0301bffe812d780cbd89fc8842b466c30 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Thu, 12 Aug 2010 18:44:16 +0200 Subject: [PATCH] fixed a bug that prevented local scripts from running --- apps/openmw/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index 827966f65f..b90c1d0a54 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -38,7 +38,7 @@ void OMW::Engine::executeLocalScripts() mEnvironment.mWorld->getLocalScripts().begin()); iter!=mEnvironment.mWorld->getLocalScripts().end(); ++iter) { - if (!mIgnoreLocalPtr.isEmpty() && mIgnoreLocalPtr!=iter->second) + if (mIgnoreLocalPtr.isEmpty() || mIgnoreLocalPtr!=iter->second) { MWScript::InterpreterContext interpreterContext (mEnvironment, &iter->second.getRefData().getLocals(), MWWorld::Ptr (iter->second));