Fixed illegal argument exception in SWGSet

This commit is contained in:
Treeku
2014-05-19 20:34:18 +01:00
parent ff220a116e
commit 4109cf5c6d
+1 -1
View File
@@ -248,7 +248,7 @@ public class SWGSet<E> implements Set<E>, Serializable {
}
private byte[] item(int type, Object index, byte[] data, boolean useIndex, boolean useData) {
if (useIndex && ((index instanceof IDelta) || !valid(index))) {
if (useIndex && !valid(index)) {
throw new IllegalArgumentException();
}