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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user