View Single Post
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#21)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Bug-NUM_FOR_EDICT Error: Bad Pointer - 10-05-2004

Quote:
Originally Posted by sPlOrYgOn
well I have now added...
Code:
int pfnIndexOfEdict (const edict_t *pEdict)
{
   if (FNullEnt (pEdict))
      RETURN_META_VALUE (MRES_SUPERCEDE, NULL);

   RETURN_META_VALUE (MRES_IGNORED, NULL);
}
This will only work if that is a bug in CS
calling ENTINDEX() or INDEXENT() in the bot plugin won't get here...