mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 00:45:34 +00:00
Fix #7039: freeze after throwing an error in a queued Lua callback
This commit is contained in:
parent
5cf96a808e
commit
710ad11dc8
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,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…
Reference in a new issue