Fix mistake in 3bcf360107 which stopped the incompatible mods page from showing.

I didn't quite understand what was supposed to happen here. This makes
things work as before.
While at it, fix a conversion bug & do some more tweaks.

Differential Revision: https://code.wildfiregames.com/D3990
This was SVN commit r25475.
This commit is contained in:
wraitii
2021-05-20 17:11:26 +00:00
parent 3bcf360107
commit a26535d023
4 changed files with 11 additions and 16 deletions
+2 -4
View File
@@ -159,11 +159,9 @@ const std::vector<CStr>& Mod::GetIncompatibleMods() const
return m_IncompatibleMods;
}
void Mod::EnableDefaultMods(const ScriptInterface& scriptInterface)
void Mod::SwitchToModSelector(const ScriptInterface& scriptInterface)
{
m_IncompatibleMods.clear();
m_ModsLoaded.clear();
m_ModsLoaded.insert(m_ModsLoaded.begin(), "mod");
m_ModsLoaded = { "mod" };
CacheEnabledModVersions(scriptInterface);
}