fix success/error handling in lua engine

This commit is contained in:
Lion Kortlepel
2026-04-18 18:24:02 +02:00
parent b3e8d86cef
commit 3e12e487ab
2 changed files with 16 additions and 3 deletions
+1
View File
@@ -15,6 +15,7 @@ void TLuaResult::MarkReadySuccess(sol::object Res) {
void TLuaResult::MarkReadyError(sol::protected_function_result Res) {
std::unique_lock Lock(mMutex);
mError = true;
SetErrorMessageFromResult(Res);
MarkAsReady();