Fixed a bug where static events would fail to halt propagation.

Signed-off-by: CandiceJoy <candice@candicejoy.com>
This commit is contained in:
CandiceJoy 2023-01-12 03:39:56 -06:00 committed by Christoph Oelckers
parent 81e7d77b44
commit 955a841884

View file

@ -511,7 +511,7 @@ bool EventManager::Responder(const event_t* ev)
return true; // event was processed
}
}
if (ShouldCallStatic(false)) uiProcessorsFound = staticEventManager.Responder(ev);
if (ShouldCallStatic(false) && staticEventManager.Responder(ev)) return true;
return false;
}