diff --git a/LuaEngine.cpp b/LuaEngine.cpp index 26b83cd..550391b 100644 --- a/LuaEngine.cpp +++ b/LuaEngine.cpp @@ -76,12 +76,7 @@ void Eluna::ReloadEluna() #ifdef TRINITY // Re initialize creature AI restoring C++ AI or applying lua AI { -#ifdef BOOST_VERSION - boost::shared_lock lock(*HashMapHolder::GetLock()); -#else - TRINITY_READ_GUARD(HashMapHolder::LockType, *HashMapHolder::GetLock()); -#endif - HashMapHolder::MapType const& m = ObjectAccessor::GetCreatures(); + HashMapHolder::MapType const m = ObjectAccessor::GetCreatures(); for (HashMapHolder::MapType::const_iterator iter = m.begin(); iter != m.end(); ++iter) if (iter->second->IsInWorld()) iter->second->AIM_Initialize();