diff options
author | Chris Apers | 2006-09-09 14:19:33 +0000 |
---|---|---|
committer | Chris Apers | 2006-09-09 14:19:33 +0000 |
commit | e78a81fe45d5466b12fdce688f217f6c6e6f716d (patch) | |
tree | 7802717bae5de922c86e0758036add36821d8a1e /engines/gob | |
parent | f34da528ebe095fe84e0f58424cf4ae941a6d4e5 (diff) | |
download | scummvm-rg350-e78a81fe45d5466b12fdce688f217f6c6e6f716d.tar.gz scummvm-rg350-e78a81fe45d5466b12fdce688f217f6c6e6f716d.tar.bz2 scummvm-rg350-e78a81fe45d5466b12fdce688f217f6c6e6f716d.zip |
Fixed unaligned read on PalmOS
svn-id: r23846
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/scenery_v1.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/gob/scenery_v1.cpp b/engines/gob/scenery_v1.cpp index a46b0faaea..e5a64f2321 100644 --- a/engines/gob/scenery_v1.cpp +++ b/engines/gob/scenery_v1.cpp @@ -146,10 +146,10 @@ void Scenery_v1::updateAnim(int16 layer, int16 frame, int16 animation, int16 fla pictIndex = (pictIndex & 15) - 1; - left = FROM_LE_16(pictPtr[pictIndex][pieceIndex].left); - right = FROM_LE_16(pictPtr[pictIndex][pieceIndex].right); - top = FROM_LE_16(pictPtr[pictIndex][pieceIndex].top); - bottom = FROM_LE_16(pictPtr[pictIndex][pieceIndex].bottom); + left = READ_LE_UINT16(&pictPtr[pictIndex][pieceIndex].left); + right = READ_LE_UINT16(&pictPtr[pictIndex][pieceIndex].right); + top = READ_LE_UINT16(&pictPtr[pictIndex][pieceIndex].top); + bottom = READ_LE_UINT16(&pictPtr[pictIndex][pieceIndex].bottom); if (flags & 2) { if (destX < _vm->_anim->_areaLeft) { |