Merge pull request #644 from MgAl2O4/fix-categoryIndexException

This commit is contained in:
goaaats 2021-10-14 19:12:57 +02:00 committed by GitHub
commit 6a8256b827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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