Fix #9626, ddafc0d: Incorrect loading of script saved data (#9629)

This commit is contained in:
Loïc Guilloux 2021-10-20 12:23:16 +02:00 committed by GitHub
parent e68a51eced
commit eed49d7792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -565,7 +565,7 @@ bool ScriptInstance::IsPaused()
switch (_script_sl_byte) { switch (_script_sl_byte) {
case SQSL_INT: { case SQSL_INT: {
int64 value; int64 value;
SlCopy(&value, 1, IsSavegameVersionBefore(SLV_SCRIPT_INT64) ? SLE_INT32 : SLE_INT64); SlCopy(&value, 1, IsSavegameVersionBefore(SLV_SCRIPT_INT64) ? SLE_FILE_I32 | SLE_VAR_I64 : SLE_INT64);
if (vm != nullptr) sq_pushinteger(vm, (SQInteger)value); if (vm != nullptr) sq_pushinteger(vm, (SQInteger)value);
return true; return true;
} }