From 2e5fe0b34dcb5739460bf7fd94807526aa0e314d Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Mon, 25 Aug 2014 17:34:29 +0100 Subject: [PATCH] Fixed HasBeenLoaded always returning false. --- src/backend/game.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/game.cpp b/src/backend/game.cpp index 78fef913..f1aeb8f1 100644 --- a/src/backend/game.cpp +++ b/src/backend/game.cpp @@ -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; }