Fixed object initialisation error

This commit is contained in:
Treeku
2014-05-13 03:38:52 +01:00
parent 0ddd645b7e
commit d6de965242
5 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ public class SWGSet<E> implements Set<E>, Serializable {
for (Object item : set) {
try {
if (item instanceof IDelta) {
item.getClass().getMethod("init", new Class[] {}).invoke(item, new Object[] { });
item.getClass().getMethod("init", new Class[] { SWGObject.class }).invoke(item, new Object[] { object });
}
} catch (Exception e) {
e.printStackTrace();