From 7d33b229c0e615d0cfc56d545c247dc346f816e7 Mon Sep 17 00:00:00 2001 From: m Date: Tue, 16 May 2023 04:49:47 -0500 Subject: [PATCH] cleanup --- src/client/component/script.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/client/component/script.cpp b/src/client/component/script.cpp index cdf049e5..aad8d693 100644 --- a/src/client/component/script.cpp +++ b/src/client/component/script.cpp @@ -159,14 +159,12 @@ namespace script void begin_load_scripts_stub(game::scriptInstance_t inst, int user) { - if (!game::Com_IsInGame() || game::Com_IsRunningUILevel()) - { - game::Scr_BeginLoadScripts(inst, user); - return; - } - game::Scr_BeginLoadScripts(inst, user); - load_scripts(); + + if (game::Com_IsInGame() && !game::Com_IsRunningUILevel()) + { + load_scripts(); + } } int server_script_checksum_stub()