fixed a bug that prevented local scripts from running

pull/7/head
Marc Zinnschlag 15 years ago
parent 7516e4ca53
commit b94e09e030

@ -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));

Loading…
Cancel
Save