From 4109cf5c6d171a57ede40e03c480b6901495c5fd Mon Sep 17 00:00:00 2001 From: Treeku Date: Mon, 19 May 2014 20:34:18 +0100 Subject: [PATCH] Fixed illegal argument exception in SWGSet --- src/resources/objects/SWGSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/objects/SWGSet.java b/src/resources/objects/SWGSet.java index 40f688f3..82faebcf 100644 --- a/src/resources/objects/SWGSet.java +++ b/src/resources/objects/SWGSet.java @@ -248,7 +248,7 @@ public class SWGSet implements Set, 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(); }