diff --git a/regamedll/dlls/cbase.h b/regamedll/dlls/cbase.h index e0ae20c2..1e11bbee 100644 --- a/regamedll/dlls/cbase.h +++ b/regamedll/dlls/cbase.h @@ -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 }