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
1 changed files with 4 additions and 1 deletions

View File

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