aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/saveload.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp
index f488eec4bd..267758d52f 100644
--- a/scumm/saveload.cpp
+++ b/scumm/saveload.cpp
@@ -884,9 +884,9 @@ void ScummEngine::saveOrLoad(Serializer *s, uint32 savegameVersion) {
}
s->saveByte(0xFF);
} else {
- int r;
- while ((r = s->loadByte()) != 0xFF) {
- res.flags[r][s->loadUint16()] |= RF_LOCK;
+ while ((i = s->loadByte()) != 0xFF) {
+ j = s->loadUint16();
+ res.flags[i][j] |= RF_LOCK;
}
}