[Solved] Memory Leak (random Hero)

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
 
Top