diff --git a/Source/Core/UICommon/NetPlayIndex.cpp b/Source/Core/UICommon/NetPlayIndex.cpp index f7cbd3f557..2c24ae41dc 100644 --- a/Source/Core/UICommon/NetPlayIndex.cpp +++ b/Source/Core/UICommon/NetPlayIndex.cpp @@ -86,8 +86,6 @@ NetPlayIndex::List(const std::map& filters) for (const auto& entry : entries.get()) { - NetPlaySession session; - const auto& name = entry.get("name"); const auto& region = entry.get("region"); const auto& method = entry.get("method"); @@ -107,6 +105,7 @@ NetPlayIndex::List(const std::map& filters) continue; } + NetPlaySession session; session.name = name.to_str(); session.region = region.to_str(); session.game_id = game_id.to_str();