diff options
author | Joost Peters | 2009-02-02 15:40:11 +0000 |
---|---|---|
committer | Joost Peters | 2009-02-02 15:40:11 +0000 |
commit | c59cff9bf3588d2c969a910774facd1fa9276cc0 (patch) | |
tree | 03c808a8ad04651d3c2c79af7c66238768d93800 /engines | |
parent | 427e1471e7f1588408f0a41daa1aeff9457f2275 (diff) | |
download | scummvm-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.cpp | 8 |
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) |