From dc311d7c3843f3346a9980e4ce5205b355cb96ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Thu, 13 Feb 2025 12:41:39 +0100 Subject: [PATCH] Fix: [Script] Report errors happening during 'Load()' (#13537) --- src/script/script_instance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/script_instance.cpp b/src/script/script_instance.cpp index c8062d719a..dcd93805c9 100644 --- a/src/script/script_instance.cpp +++ b/src/script/script_instance.cpp @@ -752,7 +752,7 @@ bool ScriptInstance::CallLoad() /* Call the script load function. sq_call removes the arguments (but not the * function pointer) from the stack. */ - if (SQ_FAILED(sq_call(vm, 3, SQFalse, SQFalse, MAX_SL_OPS))) return false; + if (SQ_FAILED(sq_call(vm, 3, SQFalse, SQTrue, MAX_SL_OPS))) return false; /* Pop 1) The version, 2) the savegame data, 3) the object instance, 4) the function pointer. */ sq_pop(vm, 4);