mirror of https://github.com/OpenTTD/OpenTTD
Fix: [Script] Report errors happening during 'Load()' (#13537)
parent
47fca6d8e6
commit
dc311d7c38
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue