Skip to content
Snippets Groups Projects
Commit 4e462d1f authored by Zach Hilman's avatar Zach Hilman
Browse files

mii_manager: Fix incorrect loop condition in mii UUID generation code

parent 851c01c4
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ void ProfileSelect::Execute() { ...@@ -53,7 +53,7 @@ void ProfileSelect::Execute() {
return; return;
} }
frontend.SelectProfile([this](std::optional<Account::UUID> uuid) { SelectionComplete(uuid); }); frontend.SelectProfile([this](std::optional<Common::UUID> uuid) { SelectionComplete(uuid); });
} }
void ProfileSelect::SelectionComplete(std::optional<Common::UUID> uuid) { void ProfileSelect::SelectionComplete(std::optional<Common::UUID> uuid) {
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "common/common_funcs.h" #include "common/common_funcs.h"
#include "common/uuid.h" #include "common/uuid.h"
#include "core/hle/result.h"
#include "core/hle/service/am/applets/applets.h" #include "core/hle/service/am/applets/applets.h"
namespace Service::AM::Applets { namespace Service::AM::Applets {
......
...@@ -403,7 +403,7 @@ MiiStoreData MiiManager::CreateMiiWithUniqueUUID() const { ...@@ -403,7 +403,7 @@ MiiStoreData MiiManager::CreateMiiWithUniqueUUID() const {
do { do {
new_mii.uuid = Common::UUID::Generate(); new_mii.uuid = Common::UUID::Generate();
} while (IndexOf(new_mii.uuid) == INVALID_INDEX); } while (IndexOf(new_mii.uuid) != INVALID_INDEX);
return new_mii; return new_mii;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment