make hud hooks clean up after themselves

This commit is contained in:
Alug committed 2024-11-22 16:04:16 +01:00
1 parent df97bef4b5
commit 9e07ca0007
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);