mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	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