Fixed ListenerListInst not being rebuild after unregistering a listener, causing calls to unregistered event listeners.

This commit is contained in:
Chimaine 2013-04-26 12:45:45 +02:00
parent cb14e29cdb
commit 4b4f5a07a5

View file

@ -209,7 +209,10 @@ public class ListenerList
{
for(ArrayList<IEventListener> list : priorities)
{
list.remove(listener);
if (list.remove(listener))
{
rebuild = true;
}
}
}
}