|
function testI2H takes nothing returns nothing
local unit u = CreateUnit(Player(0), 'hpea', 0, 0, 0)
local hashtable ht = InitHashtable()
call SaveFogStateHandle(ht, 0, 0, ConvertFogState(GetHandleId(u)))
call KillUnit(LoadUnitHandle(ht, 0, 0))
call FlushParentHashtable(ht)
set u = null
set ht = null
endfunction |
|