Fix for clickies not working, changed order of dispatch events to allow nuking items from regular item events. Changed the lua modules path.

This commit is contained in:
KimLS
2013-06-24 12:42:42 -07:00
parent b904689a98
commit 342a4c1b17
3 changed files with 16 additions and 13 deletions
+4 -1
View File
@@ -772,10 +772,13 @@ void LuaParser::ReloadQuests() {
lua_pushnil(L);
lua_setglobal(L, "os");
lua_pushnil(L);
lua_setglobal(L, "io");
lua_getglobal(L, "package");
lua_getfield(L, -1, "path");
std::string module_path = lua_tostring(L,-1);
module_path += "lua_modules/?.lua";
module_path += "./lua_modules/?.lua";
lua_pop(L, 1);
lua_pushstring(L, module_path.c_str());
lua_setfield(L, -2, "path");