diff --git a/loader/src/loader/Event.cpp b/loader/src/loader/Event.cpp index b4f26712..1e6a8946 100644 --- a/loader/src/loader/Event.cpp +++ b/loader/src/loader/Event.cpp @@ -21,6 +21,7 @@ void DefaultEventListenerPool::remove(EventListenerProtocol* listener) { m_listeners[i] = nullptr; } } + ranges::remove(m_toAdd, listener); } ListenerResult DefaultEventListenerPool::handle(Event* event) {