• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Does overwriting a point variable leak? what about hashtables?

Status
Not open for further replies.
Level 3
Joined
May 12, 2015
Messages
32
Lets say i set a point variable, then later set it again to another point and i remove it with custom scripts, will it leak? what if i do samiliar thing with hashtables?

Basically, does this leak:
  • Trig
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Set TempLocation = (Position of (Triggering unit))
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TempLocation facing Default building facing degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Set TempLocation = (Position of (Target unit of ability being cast))
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TempLocation facing Default building facing degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Custom script: call RemoveLocation(udg_TempLocation)
and this:
  • Trig
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Hashtable - Save ((Load 0 of (Key (Triggering Unit)) from Hashtable) + 1) as 0 of (Key (Triggering Unit)) in Hashtable
      • Wait 2.00 seconds
      • Hashtable - Save ((Load 0 of (Key (Triggering Unit)) from Hashtable) + 1) as 0 of (Key (Triggering Unit)) in Hashtable
      • Hashtable - Clear all child hashtables of child (Key (Triggering unit)) in Hashtable
 
Status
Not open for further replies.
Top