From d2921a09ebab899f62f7a0e44161f871828b36f6 Mon Sep 17 00:00:00 2001 From: Gliniak Date: Fri, 18 Oct 2024 21:12:17 +0200 Subject: [PATCH] [UI] Fixed inconsistency in slot id --- src/xenia/kernel/xam/xam_ui.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/kernel/xam/xam_ui.cc b/src/xenia/kernel/xam/xam_ui.cc index 5175cea02..eabcd71e5 100644 --- a/src/xenia/kernel/xam/xam_ui.cc +++ b/src/xenia/kernel/xam/xam_ui.cc @@ -860,9 +860,9 @@ bool xeDrawProfileContent(ui::ImGuiDrawer* imgui_drawer, const uint64_t xuid, } if (ImGui::BeginMenu("Login to slot:")) { - for (uint8_t i = 0; i < XUserMaxUserCount; i++) { + for (uint8_t i = 1; i <= XUserMaxUserCount; i++) { if (ImGui::MenuItem(fmt::format("slot {}", i).c_str())) { - profile_manager->Login(xuid, i); + profile_manager->Login(xuid, i - 1); } } ImGui::EndMenu();