fix: exception in category manager

This commit is contained in:
MgAl2O4 2021-10-13 15:13:33 -04:00
parent 8f86f82779
commit 546ff91523

View file

@ -99,7 +99,7 @@ namespace Dalamud.Interface.Internal
}
/// <summary>
/// Gets or sets current category.
/// Gets or sets current category, index in current Group.Categories array.
/// </summary>
public int CurrentCategoryIdx
{
@ -127,7 +127,7 @@ namespace Dalamud.Interface.Internal
(this.currentGroupIdx >= 0) &&
(this.currentGroupIdx < this.groupList.Length) &&
(this.currentCategoryIdx >= 0) &&
(this.currentCategoryIdx < this.categoryList.Length);
(this.currentCategoryIdx < this.groupList[this.currentGroupIdx].Categories.Count);
/// <summary>
/// Rebuild available categories based on currently available plugins.