Call OnCreate after full creation

This commit is contained in:
s1lentq 2022-11-28 18:23:02 +07:00
parent 84f1f5e4c6
commit 2d44adae43

View File

@ -585,9 +585,9 @@ T *GetClassPtr(T *a)
a->pev = pev;
#ifdef REGAMEDLL_API
a->OnCreate();
a->m_pEntity = new W();
a->m_pEntity->m_pContainingEntity = a;
a->OnCreate();
#endif
}