Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to make an instance of a class nil?

I have a simple class called Barracks, it has hit points, attack, defense, etc. But whe its HP reaches zero, I want the instance to be nil, and the memory from all of that is freed up. How to do this?


Sign In or Register to comment.