1
0
Fork 0

Fix: [Script] Report errors happening during 'Load()'

pull/13537/head
glx22 2025-02-12 16:59:36 +01:00
parent 3bbc80f1d9
commit 32c468156b
1 changed files with 1 additions and 1 deletions

View File

@ -752,7 +752,7 @@ bool ScriptInstance::CallLoad()
/* Call the script load function. sq_call removes the arguments (but not the /* Call the script load function. sq_call removes the arguments (but not the
* function pointer) from the stack. */ * 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. */ /* Pop 1) The version, 2) the savegame data, 3) the object instance, 4) the function pointer. */
sq_pop(vm, 4); sq_pop(vm, 4);