From 8aa6911ccafeaf8018578b406c9f1d59d07f116c Mon Sep 17 00:00:00 2001 From: lb_ii Date: Sun, 6 Jun 2021 23:53:45 +0300 Subject: [PATCH] ACHIEVEMENTS: Fix codacy issues --- common/achievements.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/achievements.cpp b/common/achievements.cpp index 35d36259f70..e5985475885 100644 --- a/common/achievements.cpp +++ b/common/achievements.cpp @@ -135,12 +135,12 @@ bool AchievementsManager::loadAchievementsData(const char *platform, const char _achievements.clear(); INIFile::SectionList sections = cfgFile.getSections(); - for (Common::INIFile::SectionList::const_iterator section = sections.begin(); section != sections.end(); section++) { + for (Common::INIFile::SectionList::const_iterator section = sections.begin(); section != sections.end(); ++section) { if (!(section->name.hasPrefix("achievements:"))) { continue; } - String lang = section->name.substr(strlen("achievements:")); + String lang = section->name.substr(13); //strlen("achievements:") for (int i = 0; i < 256; i++) { String prefix = String::format("item_%d", i);