aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-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);