- Joined
- Nov 29, 2006
- Messages
- 2,482
Okay, so I was unsure about one thing. Let say I do the following:
What if the unit dies(without decaying)/decays/explodes/removes (and such), will this cause event leaks? I mean, the event will not be used anymore since the unit doesn't exist, therefor it will only take up space in memory?
Is this something to bother about, and/or is there a possible solution?
/regards
JASS:
function Reg takes nothing returns boolean
call TriggerRegisterUnitEvent(A_trigger, GetFilterUnit(), EVENT_UNIT_DAMAGED)
return false
endfunction
function IsTest takes nothing returns nothing
call GroupEnumUnitsInRect(g, WORLD_MAP, Filter(function Reg))
endfunction
What if the unit dies(without decaying)/decays/explodes/removes (and such), will this cause event leaks? I mean, the event will not be used anymore since the unit doesn't exist, therefor it will only take up space in memory?
Is this something to bother about, and/or is there a possible solution?
/regards