minilua.h: revert changes, realized that lua_newstate is public
This commit is contained in:
@ -152,7 +152,7 @@ void game_tick(void) {
|
||||
State *state = ctx.udata;
|
||||
|
||||
/* let's init lua */
|
||||
lua_State *new_state = luaL_newstate(custom_alloc);
|
||||
lua_State *new_state = lua_newstate(custom_alloc, NULL);
|
||||
lua_setallocf(new_state, custom_alloc, NULL);
|
||||
|
||||
/* state existed already, copy its udata over */
|
||||
|
Reference in New Issue
Block a user