aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx
diff options
context:
space:
mode:
authorFilippos Karapetis2009-11-29 14:44:12 +0000
committerFilippos Karapetis2009-11-29 14:44:12 +0000
commitdc22fc1c9e7ad026990ed553ac368d1a125bf415 (patch)
treeba0a68a0cef5817943f15b8e50d6167274c97b3a /engines/sci/sfx
parent780ede2e71cebe617e528c49340a55e2e44d5720 (diff)
downloadscummvm-rg350-dc22fc1c9e7ad026990ed553ac368d1a125bf415.tar.gz
scummvm-rg350-dc22fc1c9e7ad026990ed553ac368d1a125bf415.tar.bz2
scummvm-rg350-dc22fc1c9e7ad026990ed553ac368d1a125bf415.zip
Properly update the sound state in the sound command parser when loading a game
svn-id: r46196
Diffstat (limited to 'engines/sci/sfx')
-rw-r--r--engines/sci/sfx/soundcmd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/sfx/soundcmd.h b/engines/sci/sfx/soundcmd.h
index 0a4e47512f..c4d2cdb15d 100644
--- a/engines/sci/sfx/soundcmd.h
+++ b/engines/sci/sfx/soundcmd.h
@@ -46,6 +46,8 @@ public:
SoundCommandParser(ResourceManager *resMan, SegManager *segMan, SfxState *state, AudioPlayer *audio, SciVersion doSoundVersion);
~SoundCommandParser();
+ void updateSfxState(SfxState *newState) { _state = newState; }
+
reg_t parseCommand(int argc, reg_t *argv, reg_t acc);
private: