diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index b9b59145ff..10f3b9f293 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -553,16 +553,16 @@ void TextureCacheBase::DoSaveState(PointerWrap& p) { if (ShouldSaveEntry(it.second)) { - u32 id = AddCacheEntryToMap(it.second); - textures_by_address_list.push_back(std::make_pair(it.first, id)); + const u32 id = AddCacheEntryToMap(it.second); + textures_by_address_list.emplace_back(it.first, id); } } for (const auto& it : textures_by_hash) { if (ShouldSaveEntry(it.second)) { - u32 id = AddCacheEntryToMap(it.second); - textures_by_hash_list.push_back(std::make_pair(it.first, id)); + const u32 id = AddCacheEntryToMap(it.second); + textures_by_hash_list.emplace_back(it.first, id); } } }