Permalink
Browse files

Lua 5.2: lua_open -> luaL_newstate

  • Loading branch information...
1 parent 5cd9686 commit 4170262f10528462474f3510356c7fec1fc4fe3d @johnbartholomew johnbartholomew committed May 6, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/LmrModel.cpp
  2. +1 −1 src/LuaManager.cpp
View
2 src/LmrModel.cpp
@@ -4513,7 +4513,7 @@ void LmrModelCompilerInit(Graphics::Renderer *renderer)
PiVerify(s_font = s_fontCache.GetVectorFont("WorldFont"));
- lua_State *L = lua_open();
+ lua_State *L = luaL_newstate();
sLua = L;
luaL_openlibs(L);
View
2 src/LuaManager.cpp
@@ -12,7 +12,7 @@ LuaManager::LuaManager() : m_lua(NULL) {
abort();
}
- m_lua = lua_open();
+ m_lua = luaL_newstate();
luaL_openlibs(m_lua);

0 comments on commit 4170262

Please sign in to comment.