summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/service/acc/profile_manager.cpp4
1 files 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 aff97b999..29a10ad13 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<std::size_t> ProfileManager::GetUserIndex(const ProfileInfo& user)
169std::optional<std::size_t> ProfileManager::GetUserIndex(const std::string& username) const { 169std::optional<std::size_t> ProfileManager::GetUserIndex(const std::string& username) const {
170 const auto iter = 170 const auto iter =
171 std::find_if(profiles.begin(), profiles.end(), [&username](const ProfileInfo& p) { 171 std::find_if(profiles.begin(), profiles.end(), [&username](const ProfileInfo& p) {
172 const std::string pusername = Common::StringFromFixedZeroTerminatedBuffer( 172 const std::string profile_username = Common::StringFromFixedZeroTerminatedBuffer(
173 reinterpret_cast<const char*>(p.username.data()), p.username.size()); 173 reinterpret_cast<const char*>(p.username.data()), p.username.size());
174 174
175 return username.compare(pusername) == 0; 175 return username.compare(profile_username) == 0;
176 }); 176 });
177 if (iter == profiles.end()) { 177 if (iter == profiles.end()) {
178 return std::nullopt; 178 return std::nullopt;