aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2009-12-25 13:26:09 +0000
committerFilippos Karapetis2009-12-25 13:26:09 +0000
commita5bb030b6eb7e9ab8e68b1c959c5178ac459fbbf (patch)
tree3ecebc9e6c7b9da3439df9399967480d4147492d /engines/sci
parent809e8c91235c69a4f035f8fceeb16a7cc0327170 (diff)
downloadscummvm-rg350-a5bb030b6eb7e9ab8e68b1c959c5178ac459fbbf.tar.gz
scummvm-rg350-a5bb030b6eb7e9ab8e68b1c959c5178ac459fbbf.tar.bz2
scummvm-rg350-a5bb030b6eb7e9ab8e68b1c959c5178ac459fbbf.zip
Properly initialize the audio stream part of each music slot when loading
svn-id: r46550
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/savegame.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index e380719a47..0f97025229 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -130,7 +130,6 @@ static void syncSong(Common::Serializer &s, MusicEntry *song) {
song->FadeStep = 0;
song->FadeTicker = 0;
song->FadeTickerStep = 0;
- song->pMidiParser = 0;
} else {
// A bit more optimized saving
sync_reg_t(s, song->soundObj);
@@ -145,8 +144,10 @@ static void syncSong(Common::Serializer &s, MusicEntry *song) {
s.syncAsSint32LE(song->FadeTicker);
s.syncAsSint32LE(song->FadeTickerStep);
s.syncAsByte(song->status);
- song->pMidiParser = 0;
}
+
+ song->pMidiParser = 0;
+ song->pStreamAud = 0;
}
#endif