1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 21:45:35 +00:00

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

This commit is contained in:
Petr Mikheev 2022-10-10 23:32:17 +02:00 committed by uramer
parent 5cf96a808e
commit 710ad11dc8

View file

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