From 797abb176ab2296e13f068f41c09e947386f867e Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Sun, 5 Nov 2023 15:19:26 -0800 Subject: [PATCH] ChatFilter: Fix incorrect segment highlighting (#1255) --- dChatFilter/dChatFilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dChatFilter/dChatFilter.cpp b/dChatFilter/dChatFilter.cpp index 6e3cd0691..8d2015b04 100644 --- a/dChatFilter/dChatFilter.cpp +++ b/dChatFilter/dChatFilter.cpp @@ -144,7 +144,7 @@ std::vector> dChatFilter::IsSentenceOkay(const std:: listOfBadSegments.emplace_back(position, originalSegment.length()); } - position += segment.length() + 1; + position += originalSegment.length() + 1; } return listOfBadSegments;