1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Fix #4625: Guest/peep hover text not rendered on x64 build

A recent regression where inline string sprites were changed to be treated as intptr rather than uint32.
This commit is contained in:
Ted John
2016-10-16 20:26:02 +01:00
parent b6a0890d97
commit 0c20b547f4

View File

@@ -1188,12 +1188,12 @@ static void format_string_code(unsigned int format_code, char **dest, size_t *si
value = *((uint32*)*args);
*args += 4;
format_handle_overflow(1 + sizeof(intptr_t));
format_handle_overflow(1 + sizeof(uint32));
format_push_char_safe('\x17');
*((intptr_t*)(*dest)) = value;
(*dest) += sizeof(intptr_t);
(*size) -= sizeof(intptr_t);
*((uint32*)(*dest)) = (uint32)value;
(*dest) += sizeof(uint32);
(*size) -= sizeof(uint32);
break;
}
}