This commit is contained in:
gl3nn 2014-01-21 23:11:22 +01:00
parent 5f942a9d8b
commit 4438db3bbf

View File

@ -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 (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); m_active_children.get(m_selection[playerID])->unfocused(playerID, new_focus);
} }