Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Not really, these values are stored as global variables and the next instance with the same index may overwrite it, therefore freeing the previous value.
Somehow this is the truth and somehow not. It's true that globals don't need to be nulled if they get overwritten by new instances. The "if" is the problem. If you have sort of spikes of instances were suddenly many of them are created it can easily be that some struct members will never be nulled because this behaviour never happens again.
Nulling is realy not a big deal and if you want to be 100% sure do it.
However, not nulling is only relevant when the entire map leaks handle-indices.
But then again, you can only have a certain amount of struct instances, so the maximum leak is limited unless you extend them, so they use hashtable instead of array.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.