Convert Player to Player Group Leak?

Leo

New Member
Reaction score
14
I wanted to check on this. When you use the action Convert Player to Player Group, does this create a player group leak? I wasn't sure if its handled differently then other player groups...
 

denmax

You can change this now in User CP.
Reaction score
155
I think yes. Because a PLAYER GROUP has already been created.

Remember it is: call DestroyForce(udg_VARIABLE)
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
I think it leaks if u straight covert the player to playergroup..
i think u should make a variables and store the (covert player to pg) data in it
then only pick units in (the playergroup variables)
lastly remove group
 

Leo

New Member
Reaction score
14
I know how to clean the leaks, I just wanted to make sure there wasn't any sort of constant for these type of player groups, like the All Players function.
 

Rheias

New Helper (I got over 2000 posts)
Reaction score
232
It leaks and needs to be cleaned like any other force (but all players).

Edit:

Forgot to add proof.

JASS:

call DisplayTextToForce( bj_FORCE_PLAYER[0], "")


As you can see it is bj_FORCE_PLAYER, thus it is force.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top