Fixed HasBeenLoaded always returning false.

This commit is contained in:
WrinklyNinja
2014-08-25 17:34:29 +01:00
parent 78818a2146
commit 2e5fe0b34d
+3 -3
View File
@@ -725,11 +725,11 @@ namespace loot {
bool Game::HasBeenLoaded() {
// Easy way to check is by checking the game's master file,
// which definitely shouldn't be empty.
auto pairIt = plugins.find(_masterFile);
auto pairIt = plugins.find(boost::locale::to_lower(_masterFile));
if (pairIt != plugins.end())
return pairIt->second.FormIDs().size() > 0;
return !pairIt->second.FormIDs().empty();
return false;
}