leak cheacker bugged? or there is a way to remove it?

Status
Not open for further replies.
Level 4
Joined
Oct 18, 2007
Messages
99
Untitled Trigger 005
Events
Conditions
Actions
Set group[1] = (Random 1 units from (Units in (Playable map area)))
Custom script: call DestroyGroup(udg_group[1])

Variables
group[1] : (Line: 5) Location - Removed: No

Summary
Total Leaks: 0
Unremoved Variables: 1
 
Level 4
Joined
Oct 18, 2007
Messages
99
I think the problem is, the Function Random Units Form ... Creates two groups.

One Group are all units in Playable Map area, the second the random units. So you need a tempgroup Units in Playable map area.

cedi

I tried this

Untitled Trigger 005
Events
Conditions
Actions
Set group[1] = (Units in (Playable map area))
Set group[1] = (Random 1 units from group[1])
Custom script: call DestroyGroup(udg_group[1])
Variables
group[1] : (Line: 5) Unit Group - Removed: No
group[1] : (Line: 6) Location - Removed: No

Summary
Total Leaks: 0
Unremoved Variables: 2


double the leak
 
Level 4
Joined
Oct 18, 2007
Messages
99
Yea, you should use group[1] and group[2] and at the end you need to destroy both. And the second leak message is a bit wierd...

cedi

The game laggy because of this leak and I found no leak according to this site's leak lists.
Any suggestions?
 
Level 12
Joined
Mar 10, 2008
Messages
869
Set group[1] = (Units in (Playable map area))
Set group[2] = (Random 1 units from group[1])
Custom script: call DestroyGroup(udg_group[1])
Custom script: call DestroyGroup(udg_group[2])
Do that.
Or you could do:
Set group[1] = (Random 1 units from (Units in (Playable Map Area)) (I think that doesn't leak...
 
Level 4
Joined
Oct 18, 2007
Messages
99
Set group[1] = (Units in (Playable map area))
Set group[2] = (Random 1 units from group[1])
Custom script: call DestroyGroup(udg_group[1])
Custom script: call DestroyGroup(udg_group[2])
Do that.
Or you could do:
Set group[1] = (Random 1 units from (Units in (Playable Map Area)) (I think that doesn't leak...

Still leak checker say i need to remove them. How to do it?
 
Status
Not open for further replies.
Top