Fixed ConcurrentModificationException when deleting character

This commit is contained in:
Obique PSWG
2015-07-19 12:22:49 -05:00
parent 7cfade425c
commit 5d499c06e4
+1 -1
View File
@@ -336,7 +336,7 @@ public abstract class SWGObject implements Serializable, Comparable<SWGObject> {
* @return An unmodifiable {@link Collection} of {@link SWGObject}'s in the container
*/
public Collection<SWGObject> getContainedObjects() {
return Collections.unmodifiableCollection(containedObjects.values());
return new ArrayList<>(containedObjects.values());
}
public boolean hasSlot(String slotName) {