diff --git a/src/api/game/game.cpp b/src/api/game/game.cpp index f5e7d8c7..db7ee274 100644 --- a/src/api/game/game.cpp +++ b/src/api/game/game.cpp @@ -61,7 +61,6 @@ Game::Game(const GameType gameType, const boost::filesystem::path& localDataPath) : type_(gameType), gamePath_(gamePath), - localDataPath_(localDataPath), cache_(std::make_shared()), loadOrderHandler_(std::make_shared()) { auto logger = getLogger(); @@ -71,7 +70,7 @@ Game::Game(const GameType gameType, gamePath_.string()); } - loadOrderHandler_->Init(type_, gamePath_, localDataPath_); + loadOrderHandler_->Init(type_, gamePath_, localDataPath); database_ = std::make_shared( Type(), DataPath(), GetCache(), GetLoadOrderHandler()); diff --git a/src/api/game/game.h b/src/api/game/game.h index 53fe2e72..1ef73f9d 100644 --- a/src/api/game/game.h +++ b/src/api/game/game.h @@ -83,7 +83,6 @@ private: const GameType type_; const boost::filesystem::path gamePath_; - const boost::filesystem::path localDataPath_; std::string masterFile_; };