• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Do Strings Leak???

Status
Not open for further replies.
Level 14
Joined
Jan 5, 2009
Messages
1,126
I don't know if strings leak or not? Can somebody please tell me?
Also does this trigger have any leaks?
  • Wood Gathering
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • Set P_Unit = Portal 0017 <gen>
      • Set P_Point = (Position of P_Unit)
      • Destructible - Pick every destructible within 600.00 of P_Point and do (Actions)
        • Loop - Actions
          • Player - Add 10 to (Owner of P_Unit) Current lumber
          • Set P_Lumber_Total = (P_Lumber_Total + 10)
      • Set P_String = (Lumber Income: + (String(P_Lumber_Total)))
      • Game - Display to (All players) the text: P_String
      • Set P_Lumber_Total = 0
      • Custom script: call RemoveLocation(udg_P_Point)
      • Set P_String = <Empty String>
 
I do not see any leaks at all.
Btw, as it has been said, strings does not leak. Setting string = empty string would be the only thing to stop it from "leaking" if it did :)
 
Status
Not open for further replies.
Back
Top