Leak

kungfuturte0

New Member
Reaction score
2
In my map it sometimes freezes for a short while. So i looked for some leaks and removed them. However it still freezes and i have checked all triggers with leak checker. However Im sure this is the problem:

Code:
Actions
    Set Town_Portal_2 = (Center of Town <gen>)
    Unit - Create 1 Town Portal 2 for Player 12 (Brown) at Town_Portal_2 facing Default building facing degrees
    Custom script:   call RemoveLocation(udg_Town_Portal_2) 
    Wait 0.01 seconds
    Set Town_Portal = (Position of (Triggering unit))
    Unit - Create 1 Town Portal for Player 12 (Brown) at Town_Portal facing Default building facing degrees
    Custom script:   call RemoveLocation(udg_Town_Portal) 
    Wait 0.01 seconds
    Set Town_Portal_2 = (Center of Town <gen>)
    Unit - Move (Triggering unit) instantly to Town_Portal_2
    Custom script:   call RemoveLocation(udg_Town_Portal_2)

So thats what leak checker told me to do. However, when i run it through leak checker again i get this message:

Location variable has not been removed:
Location variable has not been removed:
Location variable has not been removed:

So i am pretty sure the leak hasnt been solved in my trigger. how could i get around this to remove this annoying leak?

Thanks
 

The Undaddy

Creating with the power of rage
Reaction score
55
Whenver you see "Location variable has not been removed: " in LC,ignore it.It's possible your map to freeze if you haven't preloaded all your heroes and (mostly) spells.
 

kungfuturte0

New Member
Reaction score
2
Whenver you see "Location variable has not been removed: " in LC,ignore it.It's possible your map to freeze if you haven't preloaded all your heroes and (mostly) spells.

Ok thanks. My heros and spells are not preloaded into the game. They are built using triggers etc. So thanks!
 
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