Skip to content

Commit

Permalink
Fix focus bug when multiplayer handling is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingJellyfish committed Apr 26, 2024
1 parent 543ee92 commit 10b6c4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/guiengine/widgets/dynamic_ribbon_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,8 @@ void DynamicRibbonWidget::scroll(int x_delta, bool evenIfDeactivated)
{
for (unsigned int n=0; n<MAX_PLAYER_COUNT; n++)
{
if (m_selected_item[n] == -1)
continue;
RibbonWidget* ribbon = m_rows.get(0); // there is a single row when we can select items
int id = m_selected_item[n] - m_scroll_offset;
if (id < 0) id += (int) m_items.size();
Expand Down

0 comments on commit 10b6c4b

Please sign in to comment.