minilua.h: revert changes, realized that lua_newstate is public

This commit is contained in:
veclavtalica
2025-02-17 10:57:31 +03:00
parent 2b26fad983
commit 7eebc7a2d7
2 changed files with 4 additions and 4 deletions

View File

@ -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 */