Skip to content

Commit

Permalink
PINK: fix game page destruction after saving
Browse files Browse the repository at this point in the history
  • Loading branch information
voltya authored and sev- committed Jun 28, 2018
1 parent 10f6e0a commit b9a5f84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engines/pink/objects/pages/game_page.cpp
Expand Up @@ -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());
Expand Down

0 comments on commit b9a5f84

Please sign in to comment.