diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index e08f27c..d43f735 100644
a
|
b
|
static void listSavegames(Common::Array<SavegameDesc> &saves) {
|
421 | 421 | Common::SeekableReadStream *in; |
422 | 422 | if ((in = saveFileMan->openForLoading(filename))) { |
423 | 423 | SavegameMetadata meta; |
424 | | if (!get_savegame_metadata(in, &meta) || meta.savegame_name.empty()) { |
| 424 | if (!get_savegame_metadata(in, &meta)) { |
425 | 425 | // invalid |
426 | 426 | delete in; |
427 | 427 | continue; |
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index 88f5d29..4df577b 100644
a
|
b
|
bool get_savegame_metadata(Common::SeekableReadStream *stream, SavegameMetadata
|
793 | 793 | return false; |
794 | 794 | } |
795 | 795 | |
796 | | return true; |
| 796 | return !stream->err(); |
797 | 797 | } |
798 | 798 | |
799 | 799 | } // End of namespace Sci |