diff --git a/LuaEngine.cpp b/LuaEngine.cpp index 7907892..befb0d3 100644 --- a/LuaEngine.cpp +++ b/LuaEngine.cpp @@ -78,7 +78,7 @@ bool StartEluna() std::string folderpath = sConfigMgr->GetStringDefault("Eluna.ScriptPath", "lua_scripts"); #if PLATFORM == PLATFORM_UNIX || PLATFORM == PLATFORM_APPLE if (folderpath[0] == '~') - if (const char* home = getenv("HOME");) + if (const char* home = getenv("HOME")) folderpath.replace(0, 1, home); #endif ELUNA_LOG_INFO("[Eluna]: Searching scripts from `%s`", folderpath.c_str()); diff --git a/LuaEngine.h b/LuaEngine.h index bee683a..92bb056 100644 --- a/LuaEngine.h +++ b/LuaEngine.h @@ -80,7 +80,7 @@ typedef std::set ScriptPaths; #undef sObjectAccessor #define sWorld (&MaNGOS::Singleton::Instance()) #define sMapMgr (&MapManager::Instance()) -#define SConfigMgr (&MaNGOS::Singleton::Instance()) +#define sConfigMgr (&MaNGOS::Singleton::Instance()) #define sGuildMgr (&MaNGOS::Singleton::Instance()) #define sObjectMgr (&MaNGOS::Singleton::Instance()) #define sAccountMgr (&MaNGOS::Singleton::Instance())