From b2c32aae78966b8f2397f1c184fb4b3e40a5d410 Mon Sep 17 00:00:00 2001 From: IllustrisJack <76592751+IllustrisJack@users.noreply.github.com> Date: Mon, 27 Feb 2023 15:27:05 +0100 Subject: [PATCH] fix(rewrite): error on map switch --- ext/Client/__init__.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/Client/__init__.lua b/ext/Client/__init__.lua index c7a8e89..8d9abf9 100644 --- a/ext/Client/__init__.lua +++ b/ext/Client/__init__.lua @@ -67,6 +67,7 @@ function VEManagerClient:_OnLevelLoaded(p_LevelName, p_GameModeName, p_IsDedicat end function VEManagerClient:_OnLevelDestroy() + LEVEL_LOADED = false self:RegisterVars() m_VisualEnvironmentHandler:OnLevelDestroy() collectgarbage('collect')