mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 02:46:49 +00:00
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:
+2
-4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user