diff --git a/dChatFilter/dChatFilter.cpp b/dChatFilter/dChatFilter.cpp index 6e3cd069..8d2015b0 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;