diff --git a/Source/utils/utf8.cpp b/Source/utils/utf8.cpp index a1c117865..bc439978c 100644 --- a/Source/utils/utf8.cpp +++ b/Source/utils/utf8.cpp @@ -21,7 +21,8 @@ char32_t DecodeFirstUtf8CodePoint(string_view input, uint8_t *len) return Utf8DecodeError; } } - return codepoint; + *len = input.size(); + return Utf8DecodeError; } } // namespace devilution