1
0
Fork 0

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

pull/9678/head
Loïc Guilloux 2021-10-20 12:23:16 +02:00 committed by Patric Stout
parent 8a250da3bb
commit a652ea23c8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}