Fixed new init order causing script classes to continuously reinitialize

This commit is contained in:
Blixibon 2021-01-24 18:38:32 -06:00
parent 4441911f92
commit 01f830a72d

View File

@ -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; \