diff -r 9eec529c3caa -r 97c3e79dc80f sample_mm/engine_wrappers.h --- a/sample_mm/engine_wrappers.h Thu Jul 22 03:22:27 2010 -0500 +++ b/sample_mm/engine_wrappers.h Thu Jul 22 03:22:28 2010 -0500 @@ -70,13 +70,13 @@ inline int IndexOfEdict(const edict_t *pEdict) { - return (int)(pEdict - gpGlobals->baseEdict); + return (int)(pEdict - gpGlobals->pEdicts); } inline edict_t *PEntityOfEntIndex(int iEntIndex) { if (iEntIndex >= 0 && iEntIndex < gpGlobals->maxEntities) { - return (edict_t *)(gpGlobals->baseEdict + iEntIndex); + return (edict_t *)(gpGlobals->pEdicts + iEntIndex); } return NULL; }