aboutsummaryrefslogtreecommitdiff
path: root/engines/tucker/saveload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tucker/saveload.cpp')
-rw-r--r--engines/tucker/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tucker/saveload.cpp b/engines/tucker/saveload.cpp
index ae16837ddf..2b23cf86e0 100644
--- a/engines/tucker/saveload.cpp
+++ b/engines/tucker/saveload.cpp
@@ -112,7 +112,7 @@ Common::Error TuckerEngine::saveGameState(int num, const char *description) {
f->writeUint16LE(0);
saveOrLoadGameStateData(*f);
f->finalize();
- if (f->ioFailed()) {
+ if (f->err()) {
warning("Can't write file '%s'", gameStateFileName.c_str());
ret = Common::kWritingFailed;
}