Is there a better way of doing this, and does this leak at all? I'm new to Jass editing, but the trigger seems to be working fine.
Would it be more appropriate to call DestroyGroup(pathers) rather than setting the variable to null, or is that essentially doing the same thing?
Thanks for any help
JASS:
function Trig_Pathing1_Actions takes nothing returns nothing
local group pathers = GetUnitsInRectOfPlayer(gg_rct_Somewhere, Player(11))
call GroupPointOrder( pathers, "attack", 500, 500 )
set pathers = null
endfunction
Would it be more appropriate to call DestroyGroup(pathers) rather than setting the variable to null, or is that essentially doing the same thing?
Thanks for any help