Fix returning from tutorial

Removing these two values from the stack seems to prevent calling
the leave_tutorial hook.
This commit is contained in:
Pasi Kallinen
2024-03-20 22:44:08 +02:00
parent a8f835f968
commit 8e83fcb1cc

View File

@@ -174,8 +174,6 @@ l_nhcore_call(int callidx)
lua_getfield(gl.luacore, -1, nhcore_call_names[callidx]);
ltyp = lua_type(gl.luacore, -1);
lua_remove(gl.luacore, -2); /* nhcore_call_names[callidx] */
lua_remove(gl.luacore, -2); /* nhcore */
if (ltyp == LUA_TFUNCTION) {
nhl_pcall_handle(gl.luacore, 0, 1, "l_nhcore_call", NHLpa_panic);
} else {