From f9417cc5de792d91127367e4cf84700ac1accd98 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Thu, 4 Jun 2020 10:16:23 +0200 Subject: [PATCH] Apply suggestion from code review Co-authored-by: Tulio Leao --- src/openrct2-ui/windows/Guest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2-ui/windows/Guest.cpp b/src/openrct2-ui/windows/Guest.cpp index 27304b7b4f..16b821f8f1 100644 --- a/src/openrct2-ui/windows/Guest.cpp +++ b/src/openrct2-ui/windows/Guest.cpp @@ -1558,6 +1558,7 @@ void window_guest_stats_paint(rct_window* w, rct_drawpixelinfo* dpi) }; y += LIST_ROW_HEIGHT; int32_t nausea_tolerance = peep->nausea_tolerance & 0x3; + auto ft = Formatter::Common(); ft.Add(nauseaTolerances[nausea_tolerance]); gfx_draw_string_left(dpi, STR_GUEST_STAT_NAUSEA_TOLERANCE, gCommonFormatArgs, COLOUR_BLACK, x, y); }