aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/savegame.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-29 09:00:08 +0000
committerFilippos Karapetis2010-06-29 09:00:08 +0000
commit9f1320d5cc1d0892e0b3ea9812b6599125bd1c65 (patch)
tree5817eb4bc245a9b673c2452cb2a9fe9173f1fa29 /engines/sci/engine/savegame.cpp
parent5e030bebcc8e1a1cf918559c729039fc50a470e7 (diff)
downloadscummvm-rg350-9f1320d5cc1d0892e0b3ea9812b6599125bd1c65.tar.gz
scummvm-rg350-9f1320d5cc1d0892e0b3ea9812b6599125bd1c65.tar.bz2
scummvm-rg350-9f1320d5cc1d0892e0b3ea9812b6599125bd1c65.zip
SCI: Made the SoundCommandParser a member of the SciEngine class and removed it from the EngineState, since it's static throughout the course of a game
svn-id: r50484
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r--engines/sci/engine/savegame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index 7804265d0d..bf7b88b699 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -385,7 +385,7 @@ void EngineState::saveLoadWithSerializer(Common::Serializer &s) {
#ifdef USE_OLD_MUSIC_FUNCTIONS
sync_songlib(s, _sound._songlib);
#else
- _soundCmd->syncPlayList(s);
+ g_sci->_soundCmd->syncPlayList(s);
#endif
}
@@ -978,7 +978,7 @@ void gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) {
s->_sound._suspended = s->_sound._suspended;
reconstruct_sounds(s);
#else
- s->_soundCmd->reconstructPlayList(meta.savegame_version);
+ g_sci->_soundCmd->reconstructPlayList(meta.savegame_version);
#endif
// Message state: