• 🏆 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!

[Leaks]: Reusing a variable that contains a trigger summoned unit

Status
Not open for further replies.
Level 1
Joined
Sep 9, 2021
Messages
1
I have a spell that creates a unit. That unit is saved in a variable after being created (myVar). That unit does not have a timed life. If that unit already exists, firstly Kill myVar then create 1 unit and store it in myVar. Does this leak?
 
Level 5
Joined
Jun 12, 2018
Messages
148
This does not leak but if you got other variables linked to myVar, you need to reassign them or remove them because they become obsolete.
 
Status
Not open for further replies.
Top