aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword1/control.cpp')
-rw-r--r--engines/sword1/control.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp
index e016eaec13..9077e4f8c3 100644
--- a/engines/sword1/control.cpp
+++ b/engines/sword1/control.cpp
@@ -1140,7 +1140,7 @@ void Control::saveGameToFile(uint8 slot) {
for (uint32 cnt2 = 0; cnt2 < playerSize; cnt2++)
outf->writeUint32LE(playerRaw[cnt2]);
outf->finalize();
- if (outf->ioFailed())
+ if (outf->err())
displayMessage(0, "Couldn't write to file '%s'. Device full? (%s)", fName, _saveFileMan->popErrorDesc().c_str());
delete outf;
}
@@ -1288,7 +1288,7 @@ bool Control::convertSaveGame(uint8 slot, char* desc) {
newSave->write(saveData, dataSize);
newSave->finalize();
- if (newSave->ioFailed())
+ if (newSave->err())
warning("Couldn't write to file '%s'. Device full?", newFileName);
delete newSave;