1
0
forked from mirrors/0ad

Fix downloanded mods not showing in list until restart

since 498f0d420b
While at it, remove not used variable after 6400a4a0c5
also fix non visual replay broken in 6400a4a0c5

Differential revision: D4220
Tested by: @Stan, @Langbart
Fixes: #6288

This was SVN commit r25853.
This commit is contained in:
Angen
2021-08-22 09:54:16 +00:00
parent 2cf908a974
commit 83bb6f3ed5
7 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -156,9 +156,9 @@ bool AreModsPlayCompatible(const std::vector<Mod::ModData>& a, const std::vector
return Mod::AreModsPlayCompatible(modsA, modsB);
}
bool SetModsAndRestartEngine(const ScriptInterface& scriptInterface, const std::vector<CStr>& mods)
bool SetModsAndRestartEngine(const std::vector<CStr>& mods)
{
if (!g_Mods.EnableMods(scriptInterface, mods, false))
if (!g_Mods.EnableMods(mods, false))
return false;
RestartEngine();