diff --git a/GlobalMethods.h b/GlobalMethods.h index 39cc6f0..ef2fc0d 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -167,7 +167,7 @@ namespace LuaGlobalFunctions int tbl = lua_gettop(L); uint32 i = 0; -#if defined(MANGOS) && defined(CLASSIC) +#if defined(MANGOS) eObjectAccessor()DoForAllPlayers([&](Player* player){ if(player->IsInWorld()) { @@ -184,8 +184,6 @@ namespace LuaGlobalFunctions boost::shared_lock lock(*HashMapHolder::GetLock()); #elif defined(AZEROTHCORE) TRINITY_READ_GUARD(HashMapHolder::LockType, *HashMapHolder::GetLock()); -#elif defined(MANGOS) && !defined(CLASSIC) - ACE_READ_GUARD_RETURN(HashMapHolder::LockType, g, HashMapHolder::GetLock(), 0) #else HashMapHolder::ReadGuard g(HashMapHolder::GetLock()); #endif diff --git a/GuildMethods.h b/GuildMethods.h index 5953d7a..e8dab6f 100644 --- a/GuildMethods.h +++ b/GuildMethods.h @@ -25,7 +25,7 @@ namespace LuaGuild int tbl = lua_gettop(L); uint32 i = 0; -#if defined(MANGOS) && defined(CLASSIC) +#if defined(MANGOS) eObjectAccessor()DoForAllPlayers([&](Player* player) { if (player->IsInWorld() && player->GetGuildId() == guild->GetId()) @@ -40,8 +40,6 @@ namespace LuaGuild boost::shared_lock lock(*HashMapHolder::GetLock()); #elif defined(AZEROTHCORE) TRINITY_READ_GUARD(HashMapHolder::LockType, *HashMapHolder::GetLock()); -#elif defined(MANGOS) && !defined(CLASSIC) - ACE_READ_GUARD_RETURN(HashMapHolder::LockType, g, HashMapHolder::GetLock(), 0) #else HashMapHolder::ReadGuard g(HashMapHolder::GetLock()); #endif