From 710ad11dc870ea9e087eb7c089375f83897e8bf9 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 1eb0352e3a..862deb0d3a 100644 --- a/apps/openmw/mwlua/luamanagerimp.cpp +++ b/apps/openmw/mwlua/luamanagerimp.cpp @@ -180,7 +180,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