Fix incomplete GameCache copy constructor and assignment operator

This commit is contained in:
Oliver Hamlet
2020-07-11 18:29:14 +01:00
parent 9900860802
commit 27a52fe105
+4 -1
View File
@@ -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;