diff options
author | whiterandrek | 2018-06-13 15:04:46 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 1af15bf46bb47b689c9cda2c27a03db0f49d1c22 (patch) | |
tree | 1038f66aa09a16ecd04872ea7f51131eba90ba6d /engines/pink | |
parent | d2218ad8cd7984871b37e572e464360fb6b5530c (diff) | |
download | scummvm-rg350-1af15bf46bb47b689c9cda2c27a03db0f49d1c22.tar.gz scummvm-rg350-1af15bf46bb47b689c9cda2c27a03db0f49d1c22.tar.bz2 scummvm-rg350-1af15bf46bb47b689c9cda2c27a03db0f49d1c22.zip |
PINK: rework changing page routine
Diffstat (limited to 'engines/pink')
-rw-r--r-- | engines/pink/objects/module.cpp | 7 |
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); } |