summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Pilley <anpilley@users.noreply.github.com>2024-01-17 18:14:05 -0800
committerAndrew Pilley <anpilley@users.noreply.github.com>2024-01-17 18:14:05 -0800
commit6536d29c61d08c1225d8c229632fd6c5ccb07933 (patch)
tree71e16cbbd4b8a1d63678516168c68beb8c532461 /src
parentdff0a7c52a73a3989b788b5328a782e995f07c8c (diff)
Update based on feedback
Diffstat (limited to 'src')
-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)
std::optional<std::size_t> 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<const char*>(p.username.data()), p.username.size());
- return username.compare(pusername) == 0;
+ return username.compare(profile_username) == 0;
});
if (iter == profiles.end()) {
return std::nullopt;