aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2007-06-19 11:41:06 +0000
committerFilippos Karapetis2007-06-19 11:41:06 +0000
commitaeb9668d6641059866d745df4026ccc88985f864 (patch)
treea5e50e8fe934cf10c1501177209bc18273b87eb7
parent4ffd38a19999053dcd6796df4e0bda9d25001032 (diff)
downloadscummvm-rg350-aeb9668d6641059866d745df4026ccc88985f864.tar.gz
scummvm-rg350-aeb9668d6641059866d745df4026ccc88985f864.tar.bz2
scummvm-rg350-aeb9668d6641059866d745df4026ccc88985f864.zip
When loading a game from the same chapter as the current chapter in IHNM, the game will now be loaded correctly
svn-id: r27546
-rw-r--r--engines/saga/saveload.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/saga/saveload.cpp b/engines/saga/saveload.cpp
index f5504ab59a..05cf2f3aee 100644
--- a/engines/saga/saveload.cpp
+++ b/engines/saga/saveload.cpp
@@ -268,9 +268,10 @@ void SagaEngine::load(const char *fileName) {
sceneNumber = in->readSint32LE();
// Protagonist
if (getGameType() != GType_ITE) {
+ int currentChapter = _scene->currentChapterNumber();
_scene->setChapterNumber(in->readSint32LE());
_scene->setProtag(in->readSint32LE());
- if (_scene->currentChapterNumber())
+ if (_scene->currentChapterNumber() != currentChapter)
_scene->changeScene(-2, 0, kTransitionFade, _scene->currentChapterNumber());
_scene->setCurrentMusicTrack(in->readSint32LE());
_scene->setCurrentMusicRepeat(in->readSint32LE());