• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Leak system

Status
Not open for further replies.
Hi,i have one leak in my system shoting of my map.
The leak is:

  • trigger
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - action
I need it for 12 players...so it is Integer 1-12.
Anybody knows how to remove this leak,or some ideas how to create this system other way ? :eekani:

Thanks.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
You mean some locaton removal?

  • For each (Integer A) from 1 to 12, do (Actions)
    • Loop - Actions
      • Custom script: call RemoveLocation(udg_Temp_Loc_Array[GetForLoopIndexA()])
Replace Temp_Loc_Array with your variable name.

Could you show the whole thingy to ensure there's no leaks and that they're removed correctly.
 
aha,so i try it.

EDIT: ah yea,this is unleak for array variables...
I have unleaks like [call remove location(udg_TempPoint)]....
But i have problem with the Integer 1-12 leak...

EDIT2: If the Integer A 1-12 leak cannot be removed,tell me if you have any ideas how to do this system other way.

Integer A is not a leak.
Integers do not leak (and neither do reals and booleans), they're just numbers.

I can advise you to use a variable integer, though.
(something like "For loop integer Variable from 1 to 12), as Integer A is a BJ and is slower because of that.
 
Status
Not open for further replies.
Top