From a5135ceeb03a59584dbd390421796698fe02fd8e Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 22 Jan 2020 17:56:58 +1000 Subject: [PATCH] GameList: Fix incorrect loading of cache --- src/core/game_list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/game_list.cpp b/src/core/game_list.cpp index 32f4f5350..cf1a9b30c 100644 --- a/src/core/game_list.cpp +++ b/src/core/game_list.cpp @@ -428,7 +428,7 @@ bool GameList::LoadEntriesFromCache(ByteStream* stream) } GameListEntry ge; - ge.path = std::move(path); + ge.path = path; ge.code = std::move(code); ge.title = std::move(title); ge.total_size = total_size; @@ -440,7 +440,7 @@ bool GameList::LoadEntriesFromCache(ByteStream* stream) if (iter != m_cache_map.end()) iter->second = std::move(ge); else - m_cache_map.emplace(path, std::move(ge)); + m_cache_map.emplace(std::move(path), std::move(ge)); } return true;