From 01f830a72db0a3000b2f867fc1b63aec75e7cad1 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Sun, 24 Jan 2021 18:38:32 -0600 Subject: [PATCH] Fixed new init order causing script classes to continuously reinitialize --- sp/src/public/vscript/ivscript.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sp/src/public/vscript/ivscript.h b/sp/src/public/vscript/ivscript.h index 6ecd1452..a1c1e856 100644 --- a/sp/src/public/vscript/ivscript.h +++ b/sp/src/public/vscript/ivscript.h @@ -704,6 +704,7 @@ struct ScriptEnumDesc_t static ScriptClassDesc_t g_##className##_ScriptDesc; \ typedef className _className; \ ScriptClassDesc_t *pDesc = &g_##className##_ScriptDesc; \ + if (pDesc->m_pszClassname) return pDesc; \ pDesc->m_pszDescription = description; \ ScriptInitClassDescNamed( pDesc, className, GetScriptDescForClass( baseClass ), scriptName ); \ ScriptClassDesc_t *pInstanceHelperBase = pDesc->m_pBaseDesc; \