aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/drascula/detection.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/drascula/detection.cpp b/engines/drascula/detection.cpp
index 07f1634d87..6e38d49b94 100644
--- a/engines/drascula/detection.cpp
+++ b/engines/drascula/detection.cpp
@@ -306,7 +306,6 @@ public:
SaveStateList saveList;
int line = 1;
for (size_t i = 0; i < slots.size(); i++) {
-
// ignore lines corresponding to unused saveslots
for (; line < slots[i]; line++)
epa->readLine();
@@ -314,6 +313,10 @@ public:
// copy the name in the line corresponding to the save slot and truncate to 22 characters
saveDesc = Common::String(epa->readLine().c_str(), 22);
+ // handle cases where the save directory and save index are detectably out of sync
+ if (saveDesc == "*")
+ saveDesc = "No name specified.";
+
// increment line number to keep it in sync with slot number
line++;