aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/objects')
-rw-r--r--engines/pink/objects/pages/game_page.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pink/objects/pages/game_page.cpp b/engines/pink/objects/pages/game_page.cpp
index 9ddcffd6d4..8ab1b0a077 100644
--- a/engines/pink/objects/pages/game_page.cpp
+++ b/engines/pink/objects/pages/game_page.cpp
@@ -172,13 +172,13 @@ void GamePage::saveState(Archive &archive) {
if (this == _module->getPage()) {
saveStateToMem();
archive.writeDWORD(_memFile->size());
- archive.getWriteStream()->write(_memFile->getData(), _memFile->size());
+ archive.write(_memFile->getData(), _memFile->size());
delete _memFile;
_memFile = nullptr;
} else {
if (_memFile != nullptr) {
archive.writeDWORD(_memFile->size());
- archive.getWriteStream()->write(_memFile->getData(), _memFile->size());
+ archive.write(_memFile->getData(), _memFile->size());
} else {
archive.writeDWORD(0);
}