mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix incomplete GameCache copy constructor and assignment operator
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user