diff --git a/Source/DiabloUI/selhero.cpp b/Source/DiabloUI/selhero.cpp index e2f1d65bc..a33bf4416 100644 --- a/Source/DiabloUI/selhero.cpp +++ b/Source/DiabloUI/selhero.cpp @@ -484,7 +484,7 @@ void selhero_List_Init() } vecSelHeroDlgItems.push_back(std::make_unique(_("New Hero").c_str(), static_cast(selhero_SaveCount))); - vecSelDlgItems.push_back(std::make_unique(vecSelHeroDlgItems, 6, PANEL_LEFT + 265, (UI_OFFSET_Y + 256), 320, 26, UiFlags::AlignCenter | UiFlags::FontSize24 | UiFlags::ColorUiGold)); + vecSelDlgItems.push_back(std::make_unique(vecSelHeroDlgItems, std::min(6, selhero_SaveCount + 1), PANEL_LEFT + 265, (UI_OFFSET_Y + 256), 320, 26, UiFlags::AlignCenter | UiFlags::FontSize24 | UiFlags::ColorUiGold)); SDL_Rect rect2 = { (Sint16)(PANEL_LEFT + 585), (Sint16)(UI_OFFSET_Y + 244), 25, 178 }; vecSelDlgItems.push_back(std::make_unique(&ArtScrollBarBackground, &ArtScrollBarThumb, &ArtScrollBarArrow, rect2));