Exide
I am amazingly focused right now!
- Reaction score
- 448
Hello.
I can never remember what leaks (I'm quite sure nearly EVERYTHING does), and what to do about it.
1. Does units leak?
I.E: I use a local unit variable to be the target of my spell. Do I need to clear this variable in the end somehow?
I was thinking: 'set unit_variable = null', correct?
2. Same thing with special effects?
'call DestroyEffect( effect_variable)'
'set effect_variable = null'
-Like that?
3. If yes on 1, What about unit groups?
'call DestroyGroup( group_variable )'
'set group_variable = null'
Thank you in advance.
I can never remember what leaks (I'm quite sure nearly EVERYTHING does), and what to do about it.
1. Does units leak?
I.E: I use a local unit variable to be the target of my spell. Do I need to clear this variable in the end somehow?
I was thinking: 'set unit_variable = null', correct?
2. Same thing with special effects?
'call DestroyEffect( effect_variable)'
'set effect_variable = null'
-Like that?
3. If yes on 1, What about unit groups?
'call DestroyGroup( group_variable )'
'set group_variable = null'
Thank you in advance.