Replaced deprecated lua_open calls with luaL_newstate

This commit is contained in:
Alex Szpakowski
2013-02-16 00:51:57 -04:00
parent 1945b7975d
commit 0e4d7f1f4a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ int main(int argc, char **argv)
}
// Create the virtual machine.
lua_State *L = lua_open();
lua_State *L = luaL_newstate();
luaL_openlibs(L);
love_preload(L, luaopen_love, "love");
+1 -1
View File
@@ -39,7 +39,7 @@ Thread::ThreadThread::ThreadThread(ThreadData *comm)
void Thread::ThreadThread::main()
{
lua_State *L = lua_open();
lua_State *L = luaL_newstate();
luaL_openlibs(L);
#ifdef LOVE_BUILD_STANDALONE
love::luax_preload(L, luaopen_love, "love");