View Single Post
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#51)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Bug-NUM_FOR_EDICT Error: Bad Pointer - 15-05-2004

well it doesn't exactly crash..
hlds shuts down the server properly with a -1 return..
and if you try it with a calculator 0/0 is undefined/error.
the compiler even warns me that there could be a zero divide.

[edit]
well i've changed it to
Code:
if (iEdictNum == 0) iEdictNum = 1 / iEdictNum;
still it does NOT go through with this or the other thing..
I REALLY think something else is doing it..
[/edit]

Last edited by sPlOrYgOn; 15-05-2004 at 02:36..