[UI] Fixed inconsistency in slot id

This commit is contained in:
Gliniak 2024-10-18 21:12:17 +02:00
parent 58098aa6bf
commit d2921a09eb
1 changed files with 2 additions and 2 deletions

View File

@ -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();