mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
profile_manager: Replace iterative loop with a ranged-for loop in ParseUserSaveFile()
This commit is contained in:
parent
1af13e0802
commit
9761936e02
|
@ -341,10 +341,11 @@ void ProfileManager::ParseUserSaveFile() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (std::size_t i = 0; i < MAX_USERS; ++i) {
|
for (const auto& user : data.users) {
|
||||||
const auto& user = data.users[i];
|
if (user.uuid == UUID(INVALID_UUID)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (user.uuid != UUID(INVALID_UUID))
|
|
||||||
AddUser({user.uuid, user.username, user.timestamp, {}, false});
|
AddUser({user.uuid, user.username, user.timestamp, {}, false});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue