1
0
Fork 0

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

pull/13547/head
Loïc Guilloux 2025-02-13 12:41:39 +01:00 committed by GitHub
parent 47fca6d8e6
commit dc311d7c38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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
* 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);