diff options
author | Travis Howell | 2003-01-04 08:46:10 +0000 |
---|---|---|
committer | Travis Howell | 2003-01-04 08:46:10 +0000 |
commit | b989a3a934892c83f99a9391872e7b5727d49450 (patch) | |
tree | 836658b3949accf226a3fdb97b8cad8aafe3d687 /simon/items.cpp | |
parent | 5111eede5e768c9f0edde184c4bbc87ba3bc8463 (diff) | |
download | scummvm-rg350-b989a3a934892c83f99a9391872e7b5727d49450.tar.gz scummvm-rg350-b989a3a934892c83f99a9391872e7b5727d49450.tar.bz2 scummvm-rg350-b989a3a934892c83f99a9391872e7b5727d49450.zip |
Fix crashes in simon2dos/talkie caused by my music changes awhile back.
svn-id: r6328
Diffstat (limited to 'simon/items.cpp')
-rw-r--r-- | simon/items.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/simon/items.cpp b/simon/items.cpp index 8cd5ff67df..fcdd416c57 100644 --- a/simon/items.cpp +++ b/simon/items.cpp @@ -1491,8 +1491,10 @@ void SimonState::o_unk_127() _vc70_var1 = 0xffff; _vc72_var3 = 0xffff; _midi_unk2 = 0xffff; - midi.initialize(); - midi.play(); + if (_game & GAME_WIN) { + midi.initialize(); + midi.play(); + } _vc72_var1 = b; } else { _vc72_var3 = b; |