aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/savegame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r--engines/sci/engine/savegame.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index 3ced5a4f9d..60cdc494c7 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -402,7 +402,7 @@ void HunkTable::saveLoadWithSerializer(Common::Serializer &s) {
void Script::syncStringHeap(Common::Serializer &s) {
if (getSciVersion() < SCI_VERSION_1_1) {
- // Sync all if the SCI_OBJ_STRINGS blocks
+ // Sync all of the SCI_OBJ_STRINGS blocks
byte *buf = _buf;
bool oldScriptHeader = (getSciVersion() == SCI_VERSION_0_EARLY);
@@ -418,7 +418,6 @@ void Script::syncStringHeap(Common::Serializer &s) {
blockSize = READ_LE_UINT16(buf + 2);
assert(blockSize > 0);
-
if (blockType == SCI_OBJ_STRINGS)
s.syncBytes(buf, blockSize);