Is this supposed to be a memory leak?

LoveTD's

New Member
Reaction score
34
hey guys, I was just thinking: why not remove all the memory leaks of my game while it is being stopped because of several reasons... so I started removing the leaks and I found this trigger:

Code:
Set regions
    Events
        Map initialization
    Conditions
    Actions
        Set Bandit_spawn_region[1] = (Center of Bandit spawn region 1 <gen>)
        Set Bandit_spawn_region[2] = (Center of Bandit spawn region 2 <gen>)
        Set Furbolg_spawn_region[1] = (Center of Furbolg spawn region 1 <gen>)
        Set Furbolg_spawn_region[2] = (Center of Furbolg spawn region 2 <gen>)
        Set Harpy_spawn_region[1] = (Center of Harpys spawn region 1 <gen>)
        Set Harpy_spawn_region[2] = (Center of Harpys spawn region 2 <gen>)
        Set Harpy_spawn_region[3] = (Center of Harpys spawn region 3 <gen>)
        Set Murloc_spawn_region[1] = (Center of Murloc spawn region 1 <gen>)
        Set Murloc_spawn_region[2] = (Center of Murloc spawn region 2 <gen>)
        Set Murloc_spawn_region[3] = (Center of Murloc spawn region 3 <gen>)
        Set Murloc_spawn_region[4] = (Center of Murloc spawn region 4 <gen>)
        Set Murloc_spawn_region[5] = (Center of Murloc spawn region 5 <gen>)

this is a trigger to set some location variables, do I need to remove the memory leaks by using: call RemoveLocation(udg_my_loc)
I don't know if this will disable it for use in other triggers. If it does what do you recomend me to do?
 

LoveTD's

New Member
Reaction score
34
what do you mean by that? overwriting it in a other trigger? like setting it to something else in a other trigger or just using it in a other trigger?
 

Arie

Cool Member
Reaction score
5
Hmm, my suggestion is change the map initialization to elapsed game time is 1 second. I think that if u have multiple map initialization, will cause leak..
 

Flare

Stops copies me!
Reaction score
662
what do you mean by that? overwriting it in a other trigger? like setting it to something else in a other trigger or just using it in a other trigger?
i.e.
Code:
Some Trigger (doesn't really matter)
 Events

 Conditions

 Actions
   Set Bandit_Region_Spawn[1] = (some point)
That's causing a leak, since you're overwriting a previously set point. If you're not doing something like that, you're fine

Hmm, my suggestion is change the map initialization to elapsed game time is 1 second. I think that if u have multiple map initialization, will cause leak..
Multiple Map Init triggers won't cause it to leak (unless they are copies of that particular trigger which would be a really stupid thing to do)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top