From 0c220f7fe80093fdfa960186ef366b16806d06ca Mon Sep 17 00:00:00 2001 From: Iswenzz Date: Tue, 24 Jan 2023 11:24:59 +0100 Subject: [PATCH] Sys: Critical sections return false if section is undefined There is some cases where the fastRestart/mapRestart will clear the critical sections but the VM still runs for 1 frame and tries to enter critical sections eventho the VM is shutdown on the next frame --- src/sys/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/system.c b/src/sys/system.c index 884226d..bf350f6 100644 --- a/src/sys/system.c +++ b/src/sys/system.c @@ -99,7 +99,7 @@ void GScr_EnterCriticalSection() } if (!section) { - Plugin_Scr_Error(fmt("EnterCriticalSection(): section %s not found.", name)); + Plugin_Scr_AddBool(qfalse); return; } if (!section->locked)