From d3de21463a8ebcce605cf1fc041d8ac058e9f89a Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Thu, 11 Dec 2014 18:26:44 +0000 Subject: [PATCH] Fix #625 issue caused by unitialised variable --- src/windows/track_list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows/track_list.c b/src/windows/track_list.c index ee5f4a6686..c38a17a529 100644 --- a/src/windows/track_list.c +++ b/src/windows/track_list.c @@ -450,11 +450,11 @@ static void window_track_list_paint() x = w->x + (widget->left + widget->right) / 2; y = w->y + widget->bottom - 12; - + + RCT2_GLOBAL(0x00F44153, uint8) = 0; // Warnings if ((trackDesign->var_06 & 4) && !(RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_TRACK_MANAGER)) { // Vehicle design not available - RCT2_GLOBAL(0x00F44153, uint8) = 0; gfx_draw_string_centred_clipped(dpi, STR_VEHICLE_DESIGN_UNAVAILABLE, NULL, 0, x, y, 368); y -= 10; }