aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
Diffstat (limited to 'sky')
-rw-r--r--sky/compacts/savedata.cpp3
-rw-r--r--sky/control.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/sky/compacts/savedata.cpp b/sky/compacts/savedata.cpp
index 47051e6f0a..fb574e8157 100644
--- a/sky/compacts/savedata.cpp
+++ b/sky/compacts/savedata.cpp
@@ -976,4 +976,5 @@ uint8 *SkyControl::_saveLoadARs[18] = {
SkyCompact::wit_auto,
SkyCompact::gal_auto,
SkyCompact::ken_auto
-}; \ No newline at end of file
+};
+
diff --git a/sky/control.cpp b/sky/control.cpp
index a5c8c0d63d..01e47f64aa 100644
--- a/sky/control.cpp
+++ b/sky/control.cpp
@@ -1154,7 +1154,7 @@ uint16 SkyControl::parseSaveData(uint8 *srcBuf) {
for (cnt = 0; cnt < 13; cnt++)
LODSW(srcPos, SkyCompact::high_floor_table[cnt]);
- if (srcPos - srcBuf != size)
+ if (srcPos - srcBuf != (int32)size)
error("Restore failed! Savegame data = %d bytes. Expected size: %d.\n", srcPos-srcBuf, size);
_skyLogic->fnLeaveSection(oldSection, 0, 0);