1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 08:59:09 +00:00

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

This commit is contained in:
Loïc Guilloux
2025-02-13 12:41:39 +01:00
committed by GitHub
parent 47fca6d8e6
commit dc311d7c38

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);