Destroy a group in a hashtable

Discussion in 'JASS Zone' started by Angel_Island, Feb 9, 2015.

  1. Angel_Island

    Angel_Island Much long, many time, wow

    Ratings:
    +56 / 0 / -0
    JASS:
    local group g = LoadGroupHandle(HT, ID, 1)
    DestroyGroup(g)

    If I destroy group g, does it affect the group stored in the hashtable in anyway or can I just reassign it to another variable?
     
  2. jonas

    jonas Well-Known Member

    Ratings:
    +42 / 4 / -0
    The group is never stored in the hashtable. You store the reference/handle/address of the group. Thus there is only one group, and if you destroy it, your hashtable will point to a destroyed group - not much fun.
     

Share This Page