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

Do Strings Leak???

Status
Not open for further replies.
Level 14
Joined
Jan 5, 2009
Messages
1,127
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>
 
Level 13
Joined
Feb 18, 2009
Messages
1,381
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.
Top