- Joined
- Mar 29, 2016
- Messages
- 688
From what I understand when I do
But when i do
it seems that the handleid of the previous
Question:
JASS:
local timer t = CreateTimer()
call DestroyTimer(t)
t
still points to the handleid of the destroyed timer so I need to set t = null
so that the handleid of the destroyed timer will be recycled.But when i do
JASS:
local timer t = CreateTimer()
call DestroyTimer(t)
call BJDebugMsg(I2S(GetHandleId(t)))
set t = null
set t = CreateTimer()
call BJDebugMsg(I2S(GetHandleId(t))) // not the same as before
t
was not recycled by the new t
.Question:
- How can I make it so that the new
t
will be using the handleid of the last destroyedt
? - Is there some delay in the handleid recycling?