aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorAlyssa Milburn2010-12-05 23:02:12 +0000
committerAlyssa Milburn2010-12-05 23:02:12 +0000
commit5ee7a44cf65ed0519f3859bfe9e77643acc67004 (patch)
tree9cb4a117ad924dfaa437a5f112ff9db3a6d7662d /engines/mohawk
parent8dc80912f305db98a26a344fe197dd71da08ede7 (diff)
downloadscummvm-rg350-5ee7a44cf65ed0519f3859bfe9e77643acc67004.tar.gz
scummvm-rg350-5ee7a44cf65ed0519f3859bfe9e77643acc67004.tar.bz2
scummvm-rg350-5ee7a44cf65ed0519f3859bfe9e77643acc67004.zip
MOHAWK: fix kLBNotifyChangeMode where there's no mode change
svn-id: r54795
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/livingbooks.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index d534155315..a556381f7e 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -1041,7 +1041,11 @@ void MohawkEngine_LivingBooks::handleNotify(NotifyEvent &event) {
debug(2, "kLBNotifyChangeMode: %d", event.param);
quitGame();
} else {
+ debug(2, "kLBNotifyChangeMode: mode %d, page %d.%d",
+ event.newMode, event.newPage, event.newSubpage);
// TODO: what is entry.newUnknown?
+ if (!event.newMode)
+ event.newMode = _curMode;
if (!loadPage((LBMode)event.newMode, event.newPage, event.newSubpage))
error("kLBNotifyChangeMode failed to move to mode %d, page %d.%d",
event.newMode, event.newPage, event.newSubpage);