make hud hooks clean up after themselves

This commit is contained in:
Alug committed 2024-11-22 16:04:01 +01:00
1 parent 7732dd218f
commit caf4fd036e
1 file changed
+1
+1
View File
@@ -677,6 +677,7 @@ void LUA_HookHUD(int hook_type, huddrawlist_h list)
hud_interpolate = hud_interpstring = hud_interplatch = false;
init_hook_call(&hook, 1, res_hud);
call_mapped(&hook, map);
lua_settop(gL, 0); // destroy le stack!! >:3
hud_running = false;
lua_pushnil(gL);