aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/pink/objects/module.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/pink/objects/module.cpp b/engines/pink/objects/module.cpp
index 30a1ae01be..8743566808 100644
--- a/engines/pink/objects/module.cpp
+++ b/engines/pink/objects/module.cpp
@@ -64,13 +64,8 @@ void Module::init(bool isLoadingSave, const Common::String &pageName) {
}
void Module::changePage(const Common::String &pageName) {
- GamePage *page = nullptr;
- page = findPage(pageName);
- assert(_page != page);
-
_page->unload();
-
- _page = page;
+ _page = findPage(pageName);
_page->init(kLoadingNewGame);
}