From aa4e79c0de6f9529b7148c75ff8d888b865a0eee Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Mon, 26 Jul 2010 22:00:50 +0200 Subject: [PATCH] fixed a reclist bug induced a couple of commits ago --- apps/openmw/mwscript/compilercontext.cpp | 40 ++++++++++++------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/apps/openmw/mwscript/compilercontext.cpp b/apps/openmw/mwscript/compilercontext.cpp index de00353caf..15cc599a7f 100644 --- a/apps/openmw/mwscript/compilercontext.cpp +++ b/apps/openmw/mwscript/compilercontext.cpp @@ -23,26 +23,26 @@ namespace MWScript bool CompilerContext::isId (const std::string& name) const { return - mEnvironment.mWorld->getStore().activators.find (name) || - mEnvironment.mWorld->getStore().potions.find (name) || - mEnvironment.mWorld->getStore().appas.find (name) || - mEnvironment.mWorld->getStore().armors.find (name) || - mEnvironment.mWorld->getStore().books.find (name) || - mEnvironment.mWorld->getStore().clothes.find (name) || - mEnvironment.mWorld->getStore().containers.find (name) || - mEnvironment.mWorld->getStore().creatures.find (name) || - mEnvironment.mWorld->getStore().doors.find (name) || - mEnvironment.mWorld->getStore().ingreds.find (name) || - mEnvironment.mWorld->getStore().creatureLists.find (name) || - mEnvironment.mWorld->getStore().itemLists.find (name) || - mEnvironment.mWorld->getStore().lights.find (name) || - mEnvironment.mWorld->getStore().lockpicks.find (name) || - mEnvironment.mWorld->getStore().miscItems.find (name) || - mEnvironment.mWorld->getStore().npcs.find (name) || - mEnvironment.mWorld->getStore().probes.find (name) || - mEnvironment.mWorld->getStore().repairs.find (name) || - mEnvironment.mWorld->getStore().statics.find (name) || - mEnvironment.mWorld->getStore().weapons.find (name); + mEnvironment.mWorld->getStore().activators.search (name) || + mEnvironment.mWorld->getStore().potions.search (name) || + mEnvironment.mWorld->getStore().appas.search (name) || + mEnvironment.mWorld->getStore().armors.search (name) || + mEnvironment.mWorld->getStore().books.search (name) || + mEnvironment.mWorld->getStore().clothes.search (name) || + mEnvironment.mWorld->getStore().containers.search (name) || + mEnvironment.mWorld->getStore().creatures.search (name) || + mEnvironment.mWorld->getStore().doors.search (name) || + mEnvironment.mWorld->getStore().ingreds.search (name) || + mEnvironment.mWorld->getStore().creatureLists.search (name) || + mEnvironment.mWorld->getStore().itemLists.search (name) || + mEnvironment.mWorld->getStore().lights.search (name) || + mEnvironment.mWorld->getStore().lockpicks.search (name) || + mEnvironment.mWorld->getStore().miscItems.search (name) || + mEnvironment.mWorld->getStore().npcs.search (name) || + mEnvironment.mWorld->getStore().probes.search (name) || + mEnvironment.mWorld->getStore().repairs.search (name) || + mEnvironment.mWorld->getStore().statics.search (name) || + mEnvironment.mWorld->getStore().weapons.search (name); } }