- Joined
- Mar 26, 2009
- Messages
- 301
Which of those following sitiautions cause leaks:
1-) An unit is stored in variable A. Then this unit dies or is removed via triggers.
Another trigger now issues an order with variable A (to non-existent unit) like:
- Order A to do something
Does this cause a leak (making an action where reference unit no longer exists)
P.S: Variable will be nullified to "no unit" sooner or later. What I am asking here is, when unit is stored in variable A and that unit no longer exists, making an action with that variable cause a leak, or not.
2-) Referring to a point using "Position of Unit X" cause leak?
3-) Referring to region with "Playable Map Area" cause leak?
4-) Does un-nullified item variables cause leak?
1-) An unit is stored in variable A. Then this unit dies or is removed via triggers.
Another trigger now issues an order with variable A (to non-existent unit) like:
- Order A to do something
Does this cause a leak (making an action where reference unit no longer exists)
P.S: Variable will be nullified to "no unit" sooner or later. What I am asking here is, when unit is stored in variable A and that unit no longer exists, making an action with that variable cause a leak, or not.
2-) Referring to a point using "Position of Unit X" cause leak?
3-) Referring to region with "Playable Map Area" cause leak?
4-) Does un-nullified item variables cause leak?