• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[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