Corrected EventListener::dispatchCurrentEvents() bug, where it was only processing one event of each type

This commit is contained in:
Nav
2022-04-21 23:46:55 +01:00
parent 9450376075
commit a52f114b78

View File

@@ -83,7 +83,7 @@ namespace Bloom
std::vector<SharedGenericEventPointer> output;
for (auto& eventQueue: eventQueueByType) {
if (!eventQueue.second.empty()) {
while (!eventQueue.second.empty()) {
output.push_back(std::move(eventQueue.second.front()));
eventQueue.second.pop();
}