- Joined
- Nov 25, 2008
- Messages
- 1,309
Between these functions, which function is faster or better to use? These functions are called in a fast periodic timer, inside of a loop.
JASS:
globals
trigger array Triggers
endglobals
function Function_1 takes integer Index returns nothing
call TriggerEvaluate(Triggers[Index])
endfunction
function Function_2 takes integer Index returns nothing
local trigger Trigger=Triggers[Index]
if(Trigger!=null)then
call TriggerEvaluate(Trigger)
endif
set Trigger=null
endfunction
function Function_3 takes integer Index returns nothing
if(Triggers[Index]!=null)then
call TriggerEvaluate(Triggers[Index])
endif
endfunction