Skip to content

Commit 247a8d9

Browse files
committed
Only log active mods
1 parent f1010a4 commit 247a8d9

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/Engine/Options.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -685,13 +685,10 @@ void updateMods()
685685
userSplitMasters();
686686

687687
Log(LOG_INFO) << "Active mods:";
688-
for (std::vector< std::pair<std::string, bool> >::const_iterator i = mods.begin(); i != mods.end(); ++i)
688+
std::vector<const ModInfo*> activeMods = Options::getActiveMods();
689+
for (std::vector<const ModInfo*>::const_iterator i = activeMods.begin(); i != activeMods.end(); ++i)
689690
{
690-
if (i->second)
691-
{
692-
const ModInfo &modInfo = _modInfos.find(i->first)->second;
693-
Log(LOG_INFO) << "- " << modInfo.getId() << " v" << modInfo.getVersion();
694-
}
691+
Log(LOG_INFO) << "- " << (*i)->getId() << " v" << (*i)->getVersion();
695692
}
696693
}
697694

0 commit comments

Comments
 (0)