1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

Use proper UTF-8 handling for formatting code detection

This commit is contained in:
Alexander Overvoorde
2016-02-10 19:52:36 +01:00
parent 5adb18528e
commit 417f78b3ea

View File

@@ -713,7 +713,7 @@ void platform_process_messages()
break;
// Entering formatting characters is not allowed
if (utf8_is_format_code((int)e.text.text[0]))
if (utf8_is_format_code(utf8_get_next(e.text.text, NULL)))
break;
utf8 *newText = e.text.text;