Skip to content
This repository
Browse code

Lua 5.2: lua_open -> luaL_newstate

  • Loading branch information...
commit 4170262f10528462474f3510356c7fec1fc4fe3d 1 parent 5cd9686
John Bartholomew johnbartholomew authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  src/LmrModel.cpp
  2. +1 1  src/LuaManager.cpp
2  src/LmrModel.cpp
@@ -4513,7 +4513,7 @@ void LmrModelCompilerInit(Graphics::Renderer *renderer)
4513 4513
4514 4514 PiVerify(s_font = s_fontCache.GetVectorFont("WorldFont"));
4515 4515
4516   - lua_State *L = lua_open();
  4516 + lua_State *L = luaL_newstate();
4517 4517 sLua = L;
4518 4518 luaL_openlibs(L);
4519 4519
2  src/LuaManager.cpp
@@ -12,7 +12,7 @@ LuaManager::LuaManager() : m_lua(NULL) {
12 12 abort();
13 13 }
14 14
15   - m_lua = lua_open();
  15 + m_lua = luaL_newstate();
16 16
17 17 luaL_openlibs(m_lua);
18 18

0 comments on commit 4170262

Please sign in to comment.
Something went wrong with that request. Please try again.