From 395f7f0e9a8f83be0846f557a08a978d54aa869c Mon Sep 17 00:00:00 2001 From: Petr Mikheev Date: Mon, 10 Oct 2022 23:32:17 +0200 Subject: [PATCH] Fix #7039: freeze after throwing an error in a queued Lua callback --- apps/openmw/mwlua/luamanagerimp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwlua/luamanagerimp.cpp b/apps/openmw/mwlua/luamanagerimp.cpp index a5d605a84c..a6e55ed3e9 100644 --- a/apps/openmw/mwlua/luamanagerimp.cpp +++ b/apps/openmw/mwlua/luamanagerimp.cpp @@ -171,7 +171,7 @@ namespace MWLua // Run queued callbacks for (CallbackWithData& c : mQueuedCallbacks) - c.mCallback.call(c.mArg); + c.mCallback.tryCall(c.mArg); mQueuedCallbacks.clear(); // Engine handlers in local scripts