Removing Point Leaks for an Array

MoonSlinger

I Love using Cheap Tricks... only Results matters
Reaction score
74
Got a question about removing leaks:

Lets say I have an array of 4 locations (global) : "SEPoint[4]"

Can i use the following to clear leaks, or do i have to manually clear them one by one.

Code:
For each (Integer A) from 1 to 4, do (Actions)
    Loop - Actions
        Set TempPoint = SEPoint[(Integer A)]
        Custom script:   Call RemoveLocation(udg_TempPoint)
 

Sim

Forum Administrator
Staff member
Reaction score
534
Just do it in 1 line:

Custom script: call RemoveLocation(udg_SEPoint[bj_forLoopAIndex])
 

MoonSlinger

I Love using Cheap Tricks... only Results matters
Reaction score
74
Thanks for the fast reply and for the information, learn something today. :D

Very embarrassed by the "Call" and "call" issue, I know the difference, but still made the mistake. :eek:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top