Fixed issue #85.

Incompatibility messages were getting evaluated the opposite of how they
should be.
This commit is contained in:
WrinklyNinja
2014-01-24 10:51:27 +00:00
parent 680126d5b5
commit 902f0f5d5a
+1 -1
View File
@@ -714,7 +714,7 @@ namespace boss {
issues.insert(pair<string,bool>(it->DisplayName(),false));
}
for (set<File>::const_iterator it=incompatibilities.begin(), endIt=incompatibilities.end(); it != endIt; ++it) {
if (!boost::filesystem::exists(game.DataPath() / it->Name()) && !(IsPlugin(it->Name()) && boost::filesystem::exists(game.DataPath() / (it->Name() + ".ghost"))))
if (boost::filesystem::exists(game.DataPath() / it->Name()) || (IsPlugin(it->Name()) && boost::filesystem::exists(game.DataPath() / (it->Name() + ".ghost"))))
issues.insert(pair<string,bool>(it->DisplayName(),true));
}
return issues;