From dfbf2998b08c0c876e3748cae705c03539855946 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 24 Jul 2013 18:47:50 +0200 Subject: [PATCH] Fixed: lua_open() doesn't exist with Lua 5.2 --- code/nel/src/gui/lua_helper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/nel/src/gui/lua_helper.cpp b/code/nel/src/gui/lua_helper.cpp index 16dca8d7a..fb9466b36 100644 --- a/code/nel/src/gui/lua_helper.cpp +++ b/code/nel/src/gui/lua_helper.cpp @@ -197,6 +197,8 @@ namespace NLGUI { #ifdef LUA_NEVRAX_VERSION _State = lua_open(l_realloc_func, l_free_func); + #elif defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501 + _State = luaL_newstate(); #else _State = lua_open(); #endif