1.1 --- a/sample_mm/engine_wrappers.h Thu Jul 22 03:22:27 2010 -0500
1.2 +++ b/sample_mm/engine_wrappers.h Thu Jul 22 03:22:28 2010 -0500
1.3 @@ -70,13 +70,13 @@
1.4
1.5 inline int IndexOfEdict(const edict_t *pEdict)
1.6 {
1.7 - return (int)(pEdict - gpGlobals->baseEdict);
1.8 + return (int)(pEdict - gpGlobals->pEdicts);
1.9 }
1.10 inline edict_t *PEntityOfEntIndex(int iEntIndex)
1.11 {
1.12 if (iEntIndex >= 0 && iEntIndex < gpGlobals->maxEntities)
1.13 {
1.14 - return (edict_t *)(gpGlobals->baseEdict + iEntIndex);
1.15 + return (edict_t *)(gpGlobals->pEdicts + iEntIndex);
1.16 }
1.17 return NULL;
1.18 }