diff --git a/GlobalMethods.h b/GlobalMethods.h index 839d24e..67c26e0 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 diff --git a/GuildMethods.h b/GuildMethods.h index 42fa417..64b8c19 100644 --- a/GuildMethods.h +++ b/GuildMethods.h @@ -36,10 +36,8 @@ namespace LuaGuild }); #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