aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/objects/module.cpp')
-rw-r--r--engines/pink/objects/module.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/pink/objects/module.cpp b/engines/pink/objects/module.cpp
index f78f290abe..a8166dee43 100644
--- a/engines/pink/objects/module.cpp
+++ b/engines/pink/objects/module.cpp
@@ -50,11 +50,9 @@ void Module::init(bool isLoadingSave, const Common::String &pageName) {
// 0 0 - new game
// 0 1 - module changed
// 1 0 - from save
- if (!pageName.empty()) {
+ if (!pageName.empty())
_page = findPage(pageName);
- }
-
- if (!_page)
+ else if (!_page)
_page = _pages[0];
_page->init(isLoadingSave);
@@ -67,7 +65,6 @@ void Module::changePage(const Common::String &pageName) {
//_page->clear
-
page->init(kLoadingNewGame);
}
@@ -78,7 +75,6 @@ GamePage *Module::findPage(const Common::String &pageName) const {
});
}
-
PinkEngine *Module::getGame() const {
return _game;
}