aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2002-10-20 18:12:11 +0000
committerMax Horn2002-10-20 18:12:11 +0000
commit4cbab55b7a2ad87024550be9754ff36a9f2b4e97 (patch)
tree443a6fd94f6c54d8b34234fe5608beda441154aa
parent13808c2a3b9e1153dccbcffe85bf2dfc5272ef9f (diff)
downloadscummvm-rg350-4cbab55b7a2ad87024550be9754ff36a9f2b4e97.tar.gz
scummvm-rg350-4cbab55b7a2ad87024550be9754ff36a9f2b4e97.tar.bz2
scummvm-rg350-4cbab55b7a2ad87024550be9754ff36a9f2b4e97.zip
maybe a fix for bug #595813, SIMON: fails to initialise midi
svn-id: r5203
-rw-r--r--simon/simon.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 23aa5b6214..fc5a7906d5 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -4880,7 +4880,10 @@ void SimonState::playMusic(uint music)
/* FIXME: not properly implemented */
if (_game & GAME_WIN) {
- _game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music] - 1, SEEK_SET);
+ int32 offset = _game_offsets_ptr[gss->MUSIC_INDEX_BASE + music];
+ if (_game & GAME_SIMON2)
+ offset--;
+ _game_file->seek(offset, SEEK_SET);
File *f = _game_file;
midi.read_all_songs(f);
} else {