From 2afdd4ed4c845d8f967065e5d62e1bba24b2f317 Mon Sep 17 00:00:00 2001 From: Dmitry Orlov Date: Tue, 9 Feb 2021 23:14:42 +0300 Subject: [PATCH] Fix: error in mods resolving routine --- lib/CModHandler.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/CModHandler.cpp b/lib/CModHandler.cpp index d3299c8ba..b530e870c 100644 --- a/lib/CModHandler.cpp +++ b/lib/CModHandler.cpp @@ -725,8 +725,11 @@ std::vector CModHandler::resolveDependencies(std::vector 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; };