From 2d44adae43f979dbdf892bc0b9f1edfde1eb65dd Mon Sep 17 00:00:00 2001 From: s1lentq Date: Mon, 28 Nov 2022 18:23:02 +0700 Subject: [PATCH] Call OnCreate after full creation --- regamedll/dlls/cbase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }