aboutsummaryrefslogtreecommitdiff
path: root/engines/cryomni3d
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cryomni3d')
-rw-r--r--engines/cryomni3d/versailles/saveload.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/cryomni3d/versailles/saveload.cpp b/engines/cryomni3d/versailles/saveload.cpp
index d4985dce39..4ffdaf5d68 100644
--- a/engines/cryomni3d/versailles/saveload.cpp
+++ b/engines/cryomni3d/versailles/saveload.cpp
@@ -100,8 +100,9 @@ void CryOmni3DEngine_Versailles::getSavesList(bool visit, Common::StringArray &s
Common::InSaveFile *in = _saveFileMan->openForLoading(*file);
#endif
if (in) {
- in->read(saveName, SAVE_DESCRIPTION_LEN);
- saveNames.push_back(saveName);
+ if (in->read(saveName, SAVE_DESCRIPTION_LEN) == SAVE_DESCRIPTION_LEN) {
+ saveNames.push_back(saveName);
+ }
delete in;
}
}