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

Fix #625 issue caused by unitialised variable

This commit is contained in:
Duncan Frost
2014-12-11 18:26:44 +00:00
parent 6c0f12201e
commit d3de21463a

View File

@@ -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;
}