We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e4a008 commit be796b2Copy full SHA for be796b2
de.peeeq.wurstscript/src/main/java/de/peeeq/wurstio/jassinterpreter/providers/GroupProvider.java
@@ -26,6 +26,9 @@ public void GroupClear(IlConstHandle group) {
26
27
public ILconstBool GroupAddUnit(IlConstHandle group, IlConstHandle unit) {
28
LinkedHashSet<IlConstHandle> groupList = (LinkedHashSet<IlConstHandle>) group.getObj();
29
+ if (groupList.contains(unit)) {
30
+ return ILconstBool.FALSE;
31
+ }
32
groupList.add(unit);
33
return ILconstBool.TRUE;
34
}
0 commit comments