From 6536d29c61d08c1225d8c229632fd6c5ccb07933 Mon Sep 17 00:00:00 2001 From: Andrew Pilley Date: Wed, 17 Jan 2024 18:14:05 -0800 Subject: [PATCH] Update based on feedback --- src/core/hle/service/acc/profile_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp index aff97b9997..29a10ad13b 100644 --- a/src/core/hle/service/acc/profile_manager.cpp +++ b/src/core/hle/service/acc/profile_manager.cpp @@ -169,10 +169,10 @@ std::optional ProfileManager::GetUserIndex(const ProfileInfo& user) std::optional ProfileManager::GetUserIndex(const std::string& username) const { const auto iter = std::find_if(profiles.begin(), profiles.end(), [&username](const ProfileInfo& p) { - const std::string pusername = Common::StringFromFixedZeroTerminatedBuffer( + const std::string profile_username = Common::StringFromFixedZeroTerminatedBuffer( reinterpret_cast(p.username.data()), p.username.size()); - return username.compare(pusername) == 0; + return username.compare(profile_username) == 0; }); if (iter == profiles.end()) { return std::nullopt;