aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2/saveload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword2/saveload.cpp')
-rw-r--r--engines/sword2/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword2/saveload.cpp b/engines/sword2/saveload.cpp
index 4a8b0e9ab6..106bb97275 100644
--- a/engines/sword2/saveload.cpp
+++ b/engines/sword2/saveload.cpp
@@ -140,7 +140,7 @@ uint32 Sword2Engine::saveData(uint16 slotNo, byte *buffer, uint32 bufferSize) {
out->write(buffer, bufferSize);
out->finalize();
- if (!out->ioFailed()) {
+ if (!out->err()) {
delete out;
return SR_OK;
}