[JASS] How does handle id work?

Status
Not open for further replies.
If you remove/destroy a handle (and assuming you null all pointers) it's handle ID will be freed/recycled. (meaning, it will be available for use) The counter will not increase infinitely.

I don't remember whether it does it so that the last removed that gets priority for use or if it is the first removed that gets priority for use though.
 
If I have a item, remove it and instantly create a new item,
would the new item have the same handle id as the one destroyed?
or does the counter increase infinitely?

in ur case u cant use hashtable for keep tracking the handle id?
or something else like u make linked list for keep tracking the item handle id?
or just use item custom value, so something liek this item custom value = handleid(item)?
 
Status
Not open for further replies.
Back
Top