mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-27 17:57:22 -04:00
Fixed a crash when removing.objects from SWGLists.
This commit is contained in:
@@ -233,7 +233,7 @@ public class SWGList<E> extends Delta implements List<E> {
|
||||
int index = list.indexOf(o);
|
||||
|
||||
if (list.remove(o)) {
|
||||
queue(item(1, index, null, true, false));
|
||||
queue(item(0, index, null, true, false));
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@@ -245,7 +245,7 @@ public class SWGList<E> extends Delta implements List<E> {
|
||||
synchronized(objectMutex) {
|
||||
E element = list.remove(index);
|
||||
|
||||
queue(item(1, index, null, true, false));
|
||||
queue(item(0, index, null, true, false));
|
||||
|
||||
return (E) element;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user