I create objects via new at one place in my program (let's call them actors). Those objects get passed to another object (let's call it a projectile) via their pointer. At any point that actor object can be deleted outside of projectile. delete and setting to NULL happens with this. However a pointer of it is still in projectile. I do check if != NULL but it passes those checks. The values inside the class are all bogus but the pointer itself isn't NULL.
Do I need to do a pointer to a pointer or something? I just thought if I passed a pointer around and at some point deleted and set that pointer to NULL all the other places I passed it would show NULL as well.