From 8c321a03bbc6b6610a9f47df735c87441675c405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sun, 8 Jun 2025 18:37:44 +0200 Subject: [PATCH] Fix returning true from event handlers not doing anything Returning true is meant to consume the event, thereby preventing remaining event handlers and the rest of the game from handling it, but the check that implements this was accidentally removed in 87b81ceb45fe, oops. --- src/lua/LuaScriptInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/LuaScriptInterface.cpp b/src/lua/LuaScriptInterface.cpp index ec0812554..7bbf415b0 100644 --- a/src/lua/LuaScriptInterface.cpp +++ b/src/lua/LuaScriptInterface.cpp @@ -414,7 +414,7 @@ bool CommandInterface::HandleEvent(const GameControllerEvent &event) auto end = list.end(); lsi->currentEventHandlerIts.push_back(&it); bool cont = true; - while (it != end) + while (it != end && cont) { it->Push(L); ++it;