aboutsummaryrefslogtreecommitdiff
path: root/backends/saves
diff options
context:
space:
mode:
Diffstat (limited to 'backends/saves')
-rw-r--r--backends/saves/compressed/compressed-saves.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/saves/compressed/compressed-saves.cpp b/backends/saves/compressed/compressed-saves.cpp
index 48b7cfff79..82647062a3 100644
--- a/backends/saves/compressed/compressed-saves.cpp
+++ b/backends/saves/compressed/compressed-saves.cpp
@@ -91,7 +91,7 @@ public:
delete _wrapped;
}
- bool ioFailed() const { return (_zlibErr != Z_OK); }
+ bool ioFailed() const { return (_zlibErr != Z_OK) && (_zlibErr != Z_STREAM_END); }
void clearIOFailed() { /* errors here are not recoverable! */ }
uint32 read(void *dataPtr, uint32 dataSize) {