From 546ff91523808b7e74363848c9153da5770b5de8 Mon Sep 17 00:00:00 2001
From: MgAl2O4 <51430403+MgAl2O4@users.noreply.github.com>
Date: Wed, 13 Oct 2021 15:13:33 -0400
Subject: [PATCH] fix: exception in category manager
---
Dalamud/Interface/Internal/PluginCategoryManager.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Dalamud/Interface/Internal/PluginCategoryManager.cs b/Dalamud/Interface/Internal/PluginCategoryManager.cs
index 5cc5135d3..d1c7fdc50 100644
--- a/Dalamud/Interface/Internal/PluginCategoryManager.cs
+++ b/Dalamud/Interface/Internal/PluginCategoryManager.cs
@@ -99,7 +99,7 @@ namespace Dalamud.Interface.Internal
}
///
- /// Gets or sets current category.
+ /// Gets or sets current category, index in current Group.Categories array.
///
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);
///
/// Rebuild available categories based on currently available plugins.