Fixes #11
This commit is contained in:
parent
5f942a9d8b
commit
4438db3bbf
@ -594,7 +594,7 @@ void RibbonWidget::unfocused(const int playerID, Widget* new_focus)
|
||||
{
|
||||
if (new_focus != NULL && new_focus != this && !m_active_children.contains(new_focus))
|
||||
{
|
||||
if (m_selection[playerID] >= 0 && m_selection[playerID] < int(m_children.size()))
|
||||
if (m_selection[playerID] >= 0 && m_selection[playerID] < int(m_active_children.size()))
|
||||
{
|
||||
m_active_children.get(m_selection[playerID])->unfocused(playerID, new_focus);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user