- Joined
- Feb 27, 2019
- Messages
- 401
Hello,
Sorry if you find it a dummy question: I am currently using hashtable after having read many tutorials. And is it me or in Save/Remove calls, the parameters order is reversed between GUI and JASS ? In particular parent & child keys ?
Exemple:
From many tutorials I read (unfortunately WE doesn't give the parameter names, just "Value")
Maybe it is the reason I've such a hard time cleaning my memory when units dies^^
And an additional question:
Let's suppose I use unit handle ID as parent key. When the unit is removed, is the child table of this parent key automatically removed ? Or do I have to add a trigger "Unit leaves region (Entire Map)" that flush this child table ?
Sorry if you find it a dummy question: I am currently using hashtable after having read many tutorials. And is it me or in Save/Remove calls, the parameters order is reversed between GUI and JASS ? In particular parent & child keys ?
Exemple:
From many tutorials I read (unfortunately WE doesn't give the parameter names, just "Value")
-
Hashtable - Save *integer* as *Child* of *Parent* in *Hashtable name*
Code:
SaveInteger takes hashtable table, integer parentKey, integer childKey, integer value returns nothing
Maybe it is the reason I've such a hard time cleaning my memory when units dies^^
And an additional question:
Let's suppose I use unit handle ID as parent key. When the unit is removed, is the child table of this parent key automatically removed ? Or do I have to add a trigger "Unit leaves region (Entire Map)" that flush this child table ?
Last edited: