I got a class in my game that hold holds a mesh refernece and some other values, speed, hp, target etc..
for y in mob_list:
mob_list.erase(y)
y.free()
y = null
I wish to know what is the proper means of removing a Class object and the list item pointing towards it? Im making a clearmap() function and and same seem to remove the class items.
I check it by : tmpCNT=0 for mob in mob_list: tmpCNT = tmpCNT + 1 b.msg(tmpCNT)
calling this, and it always shows I still have object in the class. The next level starts and i get flagged for referencing a base nill that was deleted.