diff options
Diffstat (limited to 'engines/titanic/detection.cpp')
-rw-r--r-- | engines/titanic/detection.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/titanic/detection.cpp b/engines/titanic/detection.cpp index 8c990e2525..098c20ca1d 100644 --- a/engines/titanic/detection.cpp +++ b/engines/titanic/detection.cpp @@ -33,8 +33,6 @@ #include "graphics/colormasks.h" #include "graphics/surface.h" -#define MAX_SAVES 99 - namespace Titanic { struct TitanicGameDescription { @@ -120,7 +118,7 @@ SaveStateList TitanicMetaEngine::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) { |