ChatFilter: Fix incorrect segment highlighting (#1255)

This commit is contained in:
David Markowitz 2023-11-05 15:19:26 -08:00 committed by GitHub
parent 0f9e951162
commit 797abb176a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ std::vector<std::pair<uint8_t, uint8_t>> dChatFilter::IsSentenceOkay(const std::
listOfBadSegments.emplace_back(position, originalSegment.length());
}
position += segment.length() + 1;
position += originalSegment.length() + 1;
}
return listOfBadSegments;