Skip to content

Commit f1010a4

Browse files
committed
Don't touch FileMap when refreshing mods list
1 parent e08f6b3 commit f1010a4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Engine/Options.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,7 @@ void refreshMods()
563563
_masterMod = "";
564564
}
565565

566-
// pick up stuff in common before-hand
567-
FileMap::load("common", CrossPlatform::searchDataFolder("common"), true);
568-
566+
_modInfos.clear();
569567
std::string modPath = CrossPlatform::searchDataFolder("standard");
570568
Log(LOG_INFO) << "Scanning standard mods in '" << modPath << "'...";
571569
_scanMods(modPath);
@@ -679,6 +677,9 @@ void refreshMods()
679677

680678
void updateMods()
681679
{
680+
// pick up stuff in common before-hand
681+
FileMap::load("common", CrossPlatform::searchDataFolder("common"), true);
682+
682683
refreshMods();
683684
mapResources();
684685
userSplitMasters();

0 commit comments

Comments
 (0)