mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-19 01:16:45 -04:00
Fix #7039: freeze after throwing an error in a queued Lua callback
This commit is contained in:
parent
59025f2bc9
commit
395f7f0e9a
@ -171,7 +171,7 @@ namespace MWLua
|
|||||||
|
|
||||||
// Run queued callbacks
|
// Run queued callbacks
|
||||||
for (CallbackWithData& c : mQueuedCallbacks)
|
for (CallbackWithData& c : mQueuedCallbacks)
|
||||||
c.mCallback.call(c.mArg);
|
c.mCallback.tryCall(c.mArg);
|
||||||
mQueuedCallbacks.clear();
|
mQueuedCallbacks.clear();
|
||||||
|
|
||||||
// Engine handlers in local scripts
|
// Engine handlers in local scripts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user