- Joined
- Mar 26, 2009
- Messages
- 301
Do we have to nullify a unit variable after variable does its job? "Yes" you will say probably but what i am asking is: if variable is used in a repeatable trigger, what is the point of nullifying it each time? For ex: You cast a storm bolt, then trigger creates a dummy unit to cast corruption on stormbolt target. And that dummy is appointed to a variable (i know it's not necessary in this scenario but just assume that we have no other choice) So, storing same variable to different unit each time will use extra memory and cause leak? (Although unit type is same in object editor - which is Dummy- since we create a new one for each spellcast, it is technically a different unit)
And btw, which variables do leak and needs to be nullified after usage?
And btw, which variables do leak and needs to be nullified after usage?