Laiev
Hey Listen!!
- Reaction score
- 188
i need null member of struct to prevent leaks? like units, groups, locations, etc?
Yes. Blizzard made a lame bug which caused we need to null them.
no, globals variables are globals and always will be replaced by others things <like global unit gettriggerunit, the trigger unit always will change>
in local function and struct function each variable got a handle unique and unreplaceable, if you don't null it, will eat <lol> the memory of warcraft and will cause leaks
EDIT: globals variables are like gui variables, if you set it first time and set it again, the first set don't will be saved in that variable, just the last