mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-14 15:57:59 +03:00
Fixed new init order causing script classes to continuously reinitialize
This commit is contained in:
parent
4441911f92
commit
01f830a72d
@ -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; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user