Fix mangos two build

This commit is contained in:
Rochet2
2018-10-18 20:42:44 +03:00
parent b4eb7841cb
commit 8697e932ae
6 changed files with 14 additions and 10 deletions

View File

@@ -25,7 +25,7 @@ namespace LuaGuild
int tbl = lua_gettop(L);
uint32 i = 0;
#ifdef MANGOS
#if defined(MANGOS) && defined(CLASSIC)
eObjectAccessor()DoForAllPlayers([&](Player* player)
{
if (player->IsInWorld() && player->GetGuildId() == guild->GetId())
@@ -38,8 +38,10 @@ namespace LuaGuild
{
#ifdef TRINITY
boost::shared_lock<boost::shared_mutex> lock(*HashMapHolder<Player>::GetLock());
#elif AZEROTHCORE
#elif defined(AZEROTHCORE)
TRINITY_READ_GUARD(HashMapHolder<Player>::LockType, *HashMapHolder<Player>::GetLock());
#elif defined(MANGOS) && !defined(CLASSIC)
ACE_READ_GUARD_RETURN(HashMapHolder<Player>::LockType, g, HashMapHolder<Player>::GetLock(), 0)
#else
HashMapHolder<Player>::ReadGuard g(HashMapHolder<Player>::GetLock());
#endif