• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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