Commits

Alex Szpakowski committed 3f4ed5e

Replaced deprecated lua_open calls with luaL_newstate

  • Participants
  • Parent commits 1c61424

Comments (0)

Files changed (2)

File src/love.cpp

 	}
 
 	// Create the virtual machine.
-	lua_State *L = lua_open();
+	lua_State *L = luaL_newstate();
 	luaL_openlibs(L);
 
 	love_preload(L, luaopen_love, "love");

File src/modules/thread/Thread.cpp

 
 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");