• 🏆 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] Memory Leak (random Hero)

Status
Not open for further replies.
Level 4
Joined
Mar 28, 2009
Messages
66
What Variable or Variables do I have to Destroy to stop this memory leak? +rep for any help.

  • Time - Elapsed game time is 20.00 seconds
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Player 1 (Red) controller) Equal to Computer
      • Then - Actions
        • Set Random_Hero = (Random integer number between 1 and 8)
        • Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees
        • Selection - Select (Last created unit) for (Owner of (Last created unit))
        • Hero - Create Scroll of Town Portal and give it to (Last created unit)
        • Hero - Create Potion of Greater Healing and give it to (Last created unit)
        • Hero - Create Ankh of Reincarnation and give it to (Last created unit)
        • Set Random_Data[Random_Hero] = Random_Count
        • Set Random_Count = (Random_Count - 1)
        • Trigger - Turn off (This trigger)
      • Else - Actions
 
Status
Not open for further replies.
Top