fix(Config): replace deprecated functions for AzerothCore (#7)

This commit is contained in:
Kargatum
2021-10-22 22:39:09 +07:00
committed by GitHub
parent 79d271e8b8
commit cccf0623ee
2 changed files with 17 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ namespace LuaGlobalFunctions
{
#ifdef MANGOS
Eluna::Push(L, realmID);
#elif defined(AZEROTHCORE)
Eluna::Push(L, sConfigMgr->GetOption<uint32>("RealmID", 1));
#else
Eluna::Push(L, sConfigMgr->GetIntDefault("RealmID", 1));
#endif