diff --git a/GlobalMethods.h b/GlobalMethods.h index 4dbf972..c4d0039 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -10,7 +10,9 @@ #include "BindingMap.h" #ifdef AZEROTHCORE + #include "BanManager.h" + enum BanMode { BAN_ACCOUNT = 1, @@ -198,10 +200,8 @@ namespace LuaGlobalFunctions }); #else { -#ifdef TRINITY +#if defined TRINITY || AZEROTHCORE std::shared_lock lock(*HashMapHolder::GetLock()); -#elif defined(AZEROTHCORE) - ACORE_READ_GUARD(HashMapHolder::LockType, *HashMapHolder::GetLock()); #else HashMapHolder::ReadGuard g(HashMapHolder::GetLock()); #endif