From 35330b40380d4cbe270fda249a45809bdc0bd914 Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Sat, 15 Jan 2022 00:24:19 -0500 Subject: [PATCH] fix: solve off-by-one issue --- ChatTwo/Ui/ChatLog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChatTwo/Ui/ChatLog.cs b/ChatTwo/Ui/ChatLog.cs index c47ca55..47466e2 100755 --- a/ChatTwo/Ui/ChatLog.cs +++ b/ChatTwo/Ui/ChatLog.cs @@ -79,7 +79,7 @@ internal sealed class ChatLog : IUiComponent { } Tab? activeTab = null; - if (currentTab > -1 && currentTab < this.Ui.Plugin.Config.Tabs.Count - 1) { + if (currentTab > -1 && currentTab < this.Ui.Plugin.Config.Tabs.Count) { activeTab = this.Ui.Plugin.Config.Tabs[currentTab]; }