View Single Post
Re: botmaaaaaaaaan!!!!!
Old
  (#4)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: botmaaaaaaaaan!!!!! - 21-03-2004

Code:
int NUM_FOR_EDICT(edict_t *e)
{
 int  b;
 
 b = (byte *)e - (byte *)sv.edicts;
 b = b / pr_edict_size;
 
 if (b < 0 || b >= sv.num_edicts)
  SV_Error ("NUM_FOR_EDICT: bad pointer");
 return b;
}


Looks like the error is made when the entity index is below zero or greater than the amount of entities in the game.

  
Reply With Quote