Fixed ListenerListInst not being rebuild after unregistering a listener, causing calls to unregistered event listeners.
This commit is contained in:
parent
cb14e29cdb
commit
4b4f5a07a5
1 changed files with 4 additions and 1 deletions
|
@ -209,7 +209,10 @@ public class ListenerList
|
|||
{
|
||||
for(ArrayList<IEventListener> list : priorities)
|
||||
{
|
||||
list.remove(listener);
|
||||
if (list.remove(listener))
|
||||
{
|
||||
rebuild = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue