aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects
diff options
context:
space:
mode:
authorwhiterandrek2018-06-10 09:40:18 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commitb9a5f84515f2d492b67e1c91b252b157b24804dc (patch)
tree055eeef1b35f8719f3c61bfd43e6fd94e28207bf /engines/pink/objects
parent10f6e0a6b39a4ad9dc9463c9d1ca08b883c99dd0 (diff)
downloadscummvm-rg350-b9a5f84515f2d492b67e1c91b252b157b24804dc.tar.gz
scummvm-rg350-b9a5f84515f2d492b67e1c91b252b157b24804dc.tar.bz2
scummvm-rg350-b9a5f84515f2d492b67e1c91b252b157b24804dc.zip
PINK: fix game page destruction after saving
Diffstat (limited to 'engines/pink/objects')
-rw-r--r--engines/pink/objects/pages/game_page.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/pink/objects/pages/game_page.cpp b/engines/pink/objects/pages/game_page.cpp
index b2b73453d1..9ddcffd6d4 100644
--- a/engines/pink/objects/pages/game_page.cpp
+++ b/engines/pink/objects/pages/game_page.cpp
@@ -174,6 +174,7 @@ void GamePage::saveState(Archive &archive) {
archive.writeDWORD(_memFile->size());
archive.getWriteStream()->write(_memFile->getData(), _memFile->size());
delete _memFile;
+ _memFile = nullptr;
} else {
if (_memFile != nullptr) {
archive.writeDWORD(_memFile->size());