From 8c27a508a4ae525ffedf47606dda1795025468f6 Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 14 Nov 2022 21:31:19 +0200 Subject: luaInit was called two times. --- src/lua_core.c | 1 - src/state.c | 4 ---- 2 files changed, 5 deletions(-) (limited to 'src') diff --git a/src/lua_core.c b/src/lua_core.c index 5e20cd3..ac0ba32 100644 --- a/src/lua_core.c +++ b/src/lua_core.c @@ -527,7 +527,6 @@ bool luaInit() { return false; } - // luaRegister(); defineGlobals(); return true; diff --git a/src/state.c b/src/state.c index 4f7e302..178c911 100644 --- a/src/state.c +++ b/src/state.c @@ -108,10 +108,6 @@ bool stateInit( const char *exePath ) { if ( state->run ) { InitAudioDevice(); state->run = luaInit(); - // luaRegister(); - // defineGlobals(); - - state->run = luaInit(); } return state->run; -- cgit v1.2.3