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

pull/332/head
Loïc Guilloux 3 years ago committed by GitHub
parent e68a51eced
commit eed49d7792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -565,7 +565,7 @@ bool ScriptInstance::IsPaused()
switch (_script_sl_byte) {
case SQSL_INT: {
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);
return true;
}

Loading…
Cancel
Save