1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fix: error in mods resolving routine

This commit is contained in:
Dmitry Orlov 2021-02-09 23:14:42 +03:00
parent db1f9a15b0
commit 2afdd4ed4c

View File

@ -725,8 +725,11 @@ std::vector <TModID> CModHandler::resolveDependencies(std::vector <TModID> modsT
auto res = true;
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);
res = false; //continue iterations, since we should show all errors for the current mod.
}
}
return res;
};