From 45fabf40b88182584eb606d2bdf7cda8deecd811 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Mon, 26 Feb 2024 08:34:08 +1000 Subject: [PATCH] MVM: fix endless loop when a command causes an error 7e1f7d12f57c064a6855d9850d28387ca6092c45 should have included this. Signed-off-by: bones_was_here --- menu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/menu.c b/menu.c index 891ebe1e..92e95ed1 100644 --- a/menu.c +++ b/menu.c @@ -5246,6 +5246,9 @@ void MVM_error_cmd(const char *format, ...) // reset the active scene, too (to be on the safe side ;)) R_SelectScene( RST_CLIENT ); + // prevent an endless loop if the error was triggered by a command + Cbuf_Clear(cmd_local->cbuf); + // Let video start at least Host_AbortCurrentFrame(); } -- 2.39.2