From 27a52fe105511dc06c511e47e71d7bc5e9c649b3 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 11 Jul 2020 15:05:14 +0100 Subject: [PATCH] Fix incomplete GameCache copy constructor and assignment operator --- src/api/game/game_cache.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/game/game_cache.cpp b/src/api/game/game_cache.cpp index f76f3110..a706d141 100644 --- a/src/api/game/game_cache.cpp +++ b/src/api/game/game_cache.cpp @@ -36,11 +36,14 @@ using std::string; namespace loot { GameCache::GameCache() {} -GameCache::GameCache(const GameCache& cache) : plugins_(cache.plugins_) {} +GameCache::GameCache(const GameCache& cache) : + plugins_(cache.plugins_), + archivePaths_(cache.archivePaths_) {} GameCache& GameCache::operator=(const GameCache& cache) { if (&cache != this) { plugins_ = cache.plugins_; + archivePaths_ = cache.archivePaths_; } return *this;