[Trigger] Nullify Vars in GUI

Status
Not open for further replies.
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.
 
Status
Not open for further replies.
Back
Top