• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Destroy Hashtable Unit Group/Creation of Hashtable Unit Group

Status
Not open for further replies.
Level 13
Joined
Sep 29, 2008
Messages
672
If I for example I create a unit group like this to save in hashtable

  • Custom script: call SaveGroupHandleBJ( CreateGroup(), 0, GetHandleIdBJ(GetTriggerUnit()), udg_Hashtable )
Will destroying it be like this?

  • Custom script: call DestroyGroup(LoadGroupHandleBJ(0, GetHandleIdBJ(GetTriggerUnit()), udg_Hashtable))
I tried it so far, the spell works but I don't know how to make sure that this doesn't leak. Does this leak?

Basically what I did is convert GUI Hashtable to Custom Scripts because GUI Hashtable don't have CreateGroup () option.
 
Status
Not open for further replies.
Top