Hm I cannot say something fruitful about that, because you would have to post the surrounding function for that. Maybe the error arises from somewhere else?
Re: check for empty pointer
[Re: HeelX]
#400800 05/08/1206:5605/08/1206:56
If you remove the object but don't set the pointer to NULL, comparison against NULL won't work. Always use safe_remove(ent) instead ptr_remove(ent). This will delete the object AND set ent* to NULL.
Re: check for empty pointer
[Re: lemming]
#400803 05/08/1207:5505/08/1207:55