aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sky/compact.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sky/compact.cpp b/sky/compact.cpp
index 46e9c11c34..e294b8b6f1 100644
--- a/sky/compact.cpp
+++ b/sky/compact.cpp
@@ -396,7 +396,7 @@ uint8 *SkyCompact::createResetData(uint16 gameVersion) {
if (version == gameVersion) {
for (uint16 diffCnt = 0; diffCnt < diffFields; diffCnt++) {
uint16 pos = _cptFile->readUint16LE();
- resetBuf[pos] = _cptFile->readUint16LE();
+ resetBuf[pos] = TO_LE_16(_cptFile->readUint16LE());
}
return (uint8*)resetBuf;
} else