diff options
Diffstat (limited to 'engines/hugo/detection.cpp')
-rw-r--r-- | engines/hugo/detection.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/hugo/detection.cpp b/engines/hugo/detection.cpp index ede4ab2279..23e963c9b7 100644 --- a/engines/hugo/detection.cpp +++ b/engines/hugo/detection.cpp @@ -184,13 +184,12 @@ SaveStateList HugoMetaEngine::listSaves(const char *target) const { SaveStateList saveList; char slot[3]; - int slotNum = 0; for (Common::StringArray::const_iterator filename = filenames.begin(); filename != filenames.end(); ++filename) { slot[0] = filename->c_str()[filename->size() - 6]; slot[1] = filename->c_str()[filename->size() - 5]; slot[2] = '\0'; // Obtain the last 2 digits of the filename (without extension), since they correspond to the save slot - slotNum = atoi(slot); + int slotNum = atoi(slot); if (slotNum >= 0 && slotNum <= getMaximumSaveSlot()) { Common::InSaveFile *file = saveFileMan->openForLoading(*filename); if (file) { @@ -276,9 +275,9 @@ void HugoMetaEngine::removeSaveState(const char *target, int slot) const { } // End of namespace Hugo #if PLUGIN_ENABLED_DYNAMIC(HUGO) -REGISTER_PLUGIN_DYNAMIC(HUGO, PLUGIN_TYPE_ENGINE, Hugo::HugoMetaEngine); + REGISTER_PLUGIN_DYNAMIC(HUGO, PLUGIN_TYPE_ENGINE, Hugo::HugoMetaEngine); #else -REGISTER_PLUGIN_STATIC(HUGO, PLUGIN_TYPE_ENGINE, Hugo::HugoMetaEngine); + REGISTER_PLUGIN_STATIC(HUGO, PLUGIN_TYPE_ENGINE, Hugo::HugoMetaEngine); #endif namespace Hugo { |