Objects that reference other objects that have since been destroyed

FacesOfMu

Member
Trying to find out what problems arise in the following scenario:

Object1
Object2.pointing = Object1
instance_destroy(Object1)

So what is in Object2.pointing now?
 
You could answer that yourself by running debug and seeing for yourself.
Object2 "pointing" variable still has the id of Object1, even if it doesn't exist anymore - an id is just a number.
 
Top