mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-02 07:35:42 -04:00
GameList: Fix incorrect loading of cache
This commit is contained in:
parent
a832138191
commit
a5135ceeb0
@ -428,7 +428,7 @@ bool GameList::LoadEntriesFromCache(ByteStream* stream)
|
|||||||
}
|
}
|
||||||
|
|
||||||
GameListEntry ge;
|
GameListEntry ge;
|
||||||
ge.path = std::move(path);
|
ge.path = path;
|
||||||
ge.code = std::move(code);
|
ge.code = std::move(code);
|
||||||
ge.title = std::move(title);
|
ge.title = std::move(title);
|
||||||
ge.total_size = total_size;
|
ge.total_size = total_size;
|
||||||
@ -440,7 +440,7 @@ bool GameList::LoadEntriesFromCache(ByteStream* stream)
|
|||||||
if (iter != m_cache_map.end())
|
if (iter != m_cache_map.end())
|
||||||
iter->second = std::move(ge);
|
iter->second = std::move(ge);
|
||||||
else
|
else
|
||||||
m_cache_map.emplace(path, std::move(ge));
|
m_cache_map.emplace(std::move(path), std::move(ge));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user