From 5a40cc5deaf4c63369eb40ec9a762869f8408e3a Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Wed, 2 Jul 2014 01:24:07 +0300 Subject: [PATCH] Eluna fix linux --- LuaEngine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LuaEngine.cpp b/LuaEngine.cpp index 6c45760..3526273 100644 --- a/LuaEngine.cpp +++ b/LuaEngine.cpp @@ -27,9 +27,9 @@ void Eluna::Initialize() lua_folderpath = eConfigMgr->GetStringDefault("Eluna.ScriptPath", "lua_scripts"); #if PLATFORM == PLATFORM_UNIX || PLATFORM == PLATFORM_APPLE - if (folderpath[0] == '~') + if (lua_folderpath[0] == '~') if (const char* home = getenv("HOME")) - folderpath.replace(0, 1, home); + lua_folderpath.replace(0, 1, home); #endif ELUNA_LOG_INFO("[Eluna]: Searching scripts from `%s`", lua_folderpath.c_str()); GetScripts(lua_folderpath + "/extensions", lua_extensions);