diff --git a/src/lua_hooklib.c b/src/lua_hooklib.c index fe997123b..a488c7ed6 100644 --- a/src/lua_hooklib.c +++ b/src/lua_hooklib.c @@ -1062,6 +1062,9 @@ void LUA_HookNetArchive(lua_CFunction archFunc, savebuffer_t *save) lua_pushcclosure(gL, archFunc, 2); // stack: tables, savebuffer_t, archFunc + // Manually set the hook's variables here since we don't call prepare_hook + hook.hook_type = HOOK(NetVars); + hook.mobj_type = NONMOHOOK; // Force mobj_type to be NONMOHOOK so the mobj_type check get skipped init_hook_call(&hook, 0, res_none); call_mapped(&hook, map);