1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Fix #6958: Recent messages are not coloured

This fix is a workaround to what I believe is a bug in MSVC's optimised code generator. Somehow the casting of a wchar_t to a sint32 is causing some strange behaviour where the number 147 gets changed to 0x??93. Adding a printf to display codepoint was enough to alter the behaviour, making it very difficult to understand what was going on.
This commit is contained in:
Ted John
2018-02-06 23:29:23 +00:00
parent 8b72c4f1ad
commit 214df1cf75

View File

@@ -20,7 +20,7 @@
sint32 rct2_to_utf8(utf8 *dst, const char *src)
{
sint32 codepoint;
wchar_t codepoint;
utf8 *start = dst;
const char *ch = src;