Disable vscript entity listeners on level shutdown

This commit is contained in:
samisalreadytaken 2023-01-24 21:42:45 +03:00
parent 3f2f562a1e
commit 63a9dce4d4
2 changed files with 4 additions and 0 deletions

View File

@ -761,6 +761,8 @@ public:
virtual void LevelShutdownPostEntity( void )
{
#ifdef MAPBASE_VSCRIPT
g_ScriptEntityIterator.DisableEntityListening();
g_ScriptNetMsg->LevelShutdownPreVM();
GetScriptHookManager().OnShutdown();

View File

@ -841,6 +841,8 @@ public:
virtual void LevelShutdownPostEntity( void )
{
#ifdef MAPBASE_VSCRIPT
g_ScriptEntityIterator.DisableEntityListening();
g_ScriptNetMsg->LevelShutdownPreVM();
GetScriptHookManager().OnShutdown();