|
@@ -485,7 +485,10 @@ namespace GFGGame
|
|
if (itemId > 0)
|
|
if (itemId > 0)
|
|
{
|
|
{
|
|
int index = _currentList3.IndexOf(itemId);
|
|
int index = _currentList3.IndexOf(itemId);
|
|
- _ui.m_partsList.m_list.ScrollToView(index);
|
|
|
|
|
|
+ if (index >= 0 && index < _ui.m_partsList.m_list.numItems)
|
|
|
|
+ {
|
|
|
|
+ _ui.m_partsList.m_list.ScrollToView(index);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
currentListType = DressUpListType.List3;
|
|
currentListType = DressUpListType.List3;
|