From 594f38c73b5e88d11e1455cbdfbb5b808b17d2b5 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Sat, 9 Aug 2014 23:35:44 +0300 Subject: [PATCH] Eluna fix freeze on reload. Closes #99 --- LuaEngine.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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();