Although you remove the ENTITY, the pointer still points to the memory area where the entity was. It doesn't gets set to NULL because you never set it to NULL.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com