aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-04-16 06:42:26 +0000
committerPaweł Kołodziejski2003-04-16 06:42:26 +0000
commit9b739fcf0d6095aacecb3f48f670bfa2306be9d7 (patch)
treeccd4e0ab99d7adb836dccd376864600e7b473815 /scumm
parent252928f87a00e5f7b189258b2316789d3696cd36 (diff)
downloadscummvm-rg350-9b739fcf0d6095aacecb3f48f670bfa2306be9d7.tar.gz
scummvm-rg350-9b739fcf0d6095aacecb3f48f670bfa2306be9d7.tar.bz2
scummvm-rg350-9b739fcf0d6095aacecb3f48f670bfa2306be9d7.zip
a little fix for costumes, still wrong
svn-id: r7013
Diffstat (limited to 'scumm')
-rw-r--r--scumm/costume.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/costume.cpp b/scumm/costume.cpp
index eaacc36ddc..1155f80b8f 100644
--- a/scumm/costume.cpp
+++ b/scumm/costume.cpp
@@ -1211,7 +1211,7 @@ void LoadedCostume::loadCostume(int id) {
}
if (_vm->_features & GF_OLD_BUNDLE) {
- _dataptr = _ptr + _ptr[9];
+ _dataptr = _ptr + READ_LE_UINT16(_ptr + 9);
} else {
_dataptr = _ptr + READ_LE_UINT16(_ptr + _numColors + 8);
}
@@ -1277,7 +1277,7 @@ void Scumm::cost_decodeData(Actor *a, int frame, uint usemask) {
}
if (_features & GF_OLD_BUNDLE)
- dataptr = p + p[9];
+ dataptr = p + READ_LE_UINT16(p + 9);
else if (_features & GF_OLD256)
dataptr = p + *(p + lc._numColors + 8);
else