aboutsummaryrefslogtreecommitdiff
path: root/sky/control.cpp
diff options
context:
space:
mode:
authorRobert Göffringmann2005-12-13 15:27:32 +0000
committerRobert Göffringmann2005-12-13 15:27:32 +0000
commit31a7c1f0739865556a0f4d1f322508a38ebd553d (patch)
tree762f518e5cbdf1c73992e38e1595f48726cbe88a /sky/control.cpp
parent1f727e00189d347e23e24fe7e2fbd7ed68378793 (diff)
downloadscummvm-rg350-31a7c1f0739865556a0f4d1f322508a38ebd553d.tar.gz
scummvm-rg350-31a7c1f0739865556a0f4d1f322508a38ebd553d.tar.bz2
scummvm-rg350-31a7c1f0739865556a0f4d1f322508a38ebd553d.zip
make sure all Text compacts were killed after restoring a savegame
svn-id: r19795
Diffstat (limited to 'sky/control.cpp')
-rw-r--r--sky/control.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sky/control.cpp b/sky/control.cpp
index f0f2bb4d02..90adcf7f05 100644
--- a/sky/control.cpp
+++ b/sky/control.cpp
@@ -1396,6 +1396,10 @@ uint16 Control::parseSaveData(uint8 *srcBuf) {
LODSW(srcPos, rawCpt[cnt]);
}
+ // make sure all text compacts are off
+ for (cnt = CPT_TEXT_1; cnt <= CPT_TEXT_11; cnt++)
+ _skyCompact->fetchCpt(cnt)->status = 0;
+
if (srcPos - srcBuf != (int32)size)
error("Restore failed! Savegame data = %d bytes. Expected size: %d", srcPos-srcBuf, size);