mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
Not sure why it should get optimised away but this will fix the crashes.
This commit is contained in:
@@ -468,7 +468,8 @@ static void widget_groupbox_draw(rct_drawpixelinfo* dpi, rct_window* w, rct_widg
|
||||
|
||||
utf8 buffer[512] = { 0 };
|
||||
format_string(buffer, sizeof(buffer), stringId, formatArgs);
|
||||
auto ft = Formatter().Add<utf8*>(buffer);
|
||||
auto ft = Formatter();
|
||||
ft.Add<utf8*>(buffer);
|
||||
gfx_draw_string_left(dpi, STR_STRING, ft.Data(), colour, { l, t });
|
||||
textRight = l + gfx_get_string_width(buffer) + 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user