Commits

Robin Wellner committed a4ed5d3

love._sandbox() wasn't called for threads. Now it crashes.

Comments (0)

Files changed (1)

src/modules/thread/sdl/Thread.cpp

 
 		// Sandbox
 		if (luaL_loadbuffer(L, (const char *)love::sandbox_lua, sizeof(love::sandbox_lua), "sandbox.lua") == 0)
+		{
 			lua_call(L, 0, 0);
+			lua_getglobal(L, "love");
+			lua_pushstring(L, "_sandbox");
+			lua_gettable(L, -2);
+			lua_call(L, 0, 0); //?
+		}
 
 		 luax_convobj(L, lua_gettop(L), "thread", "getThread");
 		lua_getglobal(L, "love");