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 strictly speaking true, actually. Globals do still stop the index from recycling. Normally this isn't an issue, as the variable gets set to something (and thus the reference counter decrements), but if you leave it pointing at the handle... Mainly significant with arrays.
And you can just set it to no unit/whatever, no need for custom scripts.
What's the chance you will ever get to the maximum with globals (the only big loops I ever saw were in physics and stuff made with Jass)?
Still good to know that for general knowledge (not that I care for a shnitzel about warcraft anymore, but whatever).
Also don't forget to destroy pointing leaks (most common are locations, unit groups, and special effects, of course).
Not nullifying globals pretty much means that the index won't be recycled, so if you're using something like DataSystem that relies on free indexes in a handle array (based on the amount of active handles), well you're pretty much fucked. So nullify globals that could take up alot of handle indexes.
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.