mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Correctly disable root mod if it conflicts with mod player is trying to
enable
This commit is contained in:
@@ -654,7 +654,7 @@ void ModManager::updatePreset(const ModDependenciesResolver & testResolver)
|
|||||||
for (const auto & modID : newBrokenMods)
|
for (const auto & modID : newBrokenMods)
|
||||||
{
|
{
|
||||||
const auto & mod = getModDescription(modID);
|
const auto & mod = getModDescription(modID);
|
||||||
if (vstd::contains(newActiveMods, mod.getTopParentID()))
|
if (mod.getTopParentID().empty() || vstd::contains(newActiveMods, mod.getTopParentID()))
|
||||||
modsPreset->setModActive(modID, false);
|
modsPreset->setModActive(modID, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user