Skip to content

Commit 1877083

Browse files
committed
fix #1011
1 parent 5afd9f6 commit 1877083

File tree

1 file changed

+2
-1
lines changed
  • de.peeeq.wurstscript/src/main/java/de/peeeq/wurstio/jassinterpreter/providers

1 file changed

+2
-1
lines changed

de.peeeq.wurstscript/src/main/java/de/peeeq/wurstio/jassinterpreter/providers/GroupProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public ILconstInt BlzGroupAddGroupFast(IlConstHandle group, IlConstHandle groupA
114114

115115
public ILconstInt BlzGroupRemoveGroupFast(IlConstHandle group, IlConstHandle groupRm) {
116116
LinkedHashSet<IlConstHandle> groupList = (LinkedHashSet<IlConstHandle>) groupRm.getObj();
117+
int sizeBefore = groupList.size();
117118
groupList.removeAll((LinkedHashSet<IlConstHandle>) group.getObj());
118-
return ILconstInt.create(groupList.size());
119+
return ILconstInt.create(sizeBefore - groupList.size());
119120
}
120121
}

0 commit comments

Comments
 (0)