1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-30 10:06:40 +00:00

Merge branch 'fix_7039' into 'master'

Fix #7039: freeze after throwing an error in a queued Lua callback

Closes #7039

See merge request OpenMW/openmw!2469
This commit is contained in:
uramer 2022-10-18 19:53:30 +00:00
commit 8108fa0724

View file

@ -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