aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJoost Peters2009-02-02 15:40:11 +0000
committerJoost Peters2009-02-02 15:40:11 +0000
commitc59cff9bf3588d2c969a910774facd1fa9276cc0 (patch)
tree03c808a8ad04651d3c2c79af7c66238768d93800 /engines
parent427e1471e7f1588408f0a41daa1aeff9457f2275 (diff)
downloadscummvm-rg350-c59cff9bf3588d2c969a910774facd1fa9276cc0.tar.gz
scummvm-rg350-c59cff9bf3588d2c969a910774facd1fa9276cc0.tar.bz2
scummvm-rg350-c59cff9bf3588d2c969a910774facd1fa9276cc0.zip
endian safety
svn-id: r36199
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/music.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/tinsel/music.cpp b/engines/tinsel/music.cpp
index 657e0cbf92..fa1fb4926f 100644
--- a/engines/tinsel/music.cpp
+++ b/engines/tinsel/music.cpp
@@ -802,7 +802,7 @@ bool PCMMusicPlayer::getNextChunk() {
// Set parameters for this chunk of music
id = _scriptNum;
while (id--)
- script = scriptBuffer + FROM_LE_32(*script);
+ script = scriptBuffer + READ_LE_UINT32(script);
snum = FROM_LE_32(script[_scriptIndex++]);
if (snum == MUSIC_JUMP || snum == MUSIC_END) {
@@ -850,16 +850,16 @@ bool PCMMusicPlayer::getNextChunk() {
id = _scriptNum;
while (id--)
- script = scriptBuffer + FROM_LE_32(*script);
+ script = scriptBuffer + READ_LE_UINT32(script);
- switch (script[_scriptIndex]) {
+ switch (FROM_LE_32(script[_scriptIndex])) {
case MUSIC_END:
_state = S_END2;
break;
case MUSIC_JUMP:
- _scriptIndex = script[++_scriptIndex];
+ _scriptIndex = FROM_LE_32(script[++_scriptIndex]);
// Fall through
default:
if (_forcePlay)