From 4367ade8c7282c2d6401e8035940f7ce3c646f4b Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 17 Feb 2014 21:29:15 +0100 Subject: VOYEUR: Fix maximum number of savegames --- engines/voyeur/detection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/voyeur') diff --git a/engines/voyeur/detection.cpp b/engines/voyeur/detection.cpp index 8d3910e747..ab3932bea1 100644 --- a/engines/voyeur/detection.cpp +++ b/engines/voyeur/detection.cpp @@ -127,7 +127,7 @@ SaveStateList VoyeurMetaEngine::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) { -- cgit v1.2.3