diff options
-rw-r--r-- | engines/xeen/detection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/detection.cpp b/engines/xeen/detection.cpp index 1b9c260e35..8a5e096220 100644 --- a/engines/xeen/detection.cpp +++ b/engines/xeen/detection.cpp @@ -181,7 +181,7 @@ SaveStateList XeenMetaEngine::listSaves(const char *target) const { const char *ext = strrchr(file->c_str(), '.'); int slot = ext ? atoi(ext + 1) : -1; - if (slot >= 0 && slot < MAX_SAVES) { + if (slot >= 0 && slot <= MAX_SAVES) { Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(*file); if (in) { |