View Single Post
Old 08-04-2009, 05:41 PM  
Gwypaas
User
 
Join Date: Oct 2007
Posts: 169

Submissions (2)

Gwypaas has little to show at this moment (7)

Default

Return bug still works...
Collapse JASS:
function H2I takes handle h returns integer
       return h
       call DoNothing()
       return 0
endfunction

Tried this on bnet:
Collapse JASS:
function H2I takes handle h returns integer
return h
call DoNothing()
return 0
endfunction

function Trig_H2ITest_Actions takes nothing returns nothing
local unit u = CreateUnit(Player(0), 'hfoo', 0,0,270)
call BJDebugMsg("H2I         : " + I2S(H2I(u)))
call BJDebugMsg("GetHandleID : " + I2S(GetHandleId(u)))
set u= null
endfunction

//===========================================================================
function InitTrig_H2ITest takes nothing returns nothing
    set gg_trg_H2ITest = CreateTrigger(  )
    call TriggerRegisterTimerEventSingle( gg_trg_H2ITest, 5 )
    call TriggerAddAction( gg_trg_H2ITest, function Trig_H2ITest_Actions )
endfunction
Got the same handle ID for both.
Gwypaas is offline   Reply With Quote