mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Merge pull request #679 from ShubusCorporation/do/fix/mod_resolving_typo
Fix: Error in mods resolving routine
This commit is contained in:
@@ -725,8 +725,11 @@ std::vector <TModID> CModHandler::resolveDependencies(std::vector <TModID> modsT
|
|||||||
auto res = true;
|
auto res = true;
|
||||||
for(const TModID & dependency : mod.dependencies)
|
for(const TModID & dependency : mod.dependencies)
|
||||||
{
|
{
|
||||||
if(!(res = vstd::contains(modsToResolve, dependency)))
|
if(!vstd::contains(modsToResolve, dependency))
|
||||||
|
{
|
||||||
logMod->error("Mod '%s' will not work: it depends on mod '%s', which is not installed.", mod.name, dependency);
|
logMod->error("Mod '%s' will not work: it depends on mod '%s', which is not installed.", mod.name, dependency);
|
||||||
|
res = false; //continue iterations, since we should show all errors for the current mod.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user