This commit is contained in:
Winfidonarleyan
2021-03-18 23:23:57 +07:00
parent 6448bf3869
commit 33783f4e14

View File

@@ -36,10 +36,8 @@ namespace LuaGuild
});
#else
{
#ifdef TRINITY
#if defined TRINITY || AZEROTHCORE
std::shared_lock<std::shared_mutex> lock(*HashMapHolder<Player>::GetLock());
#elif defined(AZEROTHCORE)
ACORE_READ_GUARD(HashMapHolder<Player>::LockType, *HashMapHolder<Player>::GetLock());
#else
HashMapHolder<Player>::ReadGuard g(HashMapHolder<Player>::GetLock());
#endif