From 89c9cc26c0dc2d764553e216bd8b16a1e52b9556 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 28 Aug 2016 17:24:51 +0100 Subject: [PATCH] Fix #4342: x64 version crashes on ride window, station view --- src/windows/ride.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows/ride.c b/src/windows/ride.c index a1b64a38bf..f0607983e9 100644 --- a/src/windows/ride.c +++ b/src/windows/ride.c @@ -2607,7 +2607,7 @@ static rct_string_id window_ride_get_status_station(rct_window *w, void *argumen // Queue length if (stringId == 0) { queueLength = ride->queue_length[stationIndex]; - RCT2_GLOBAL((uintptr_t)arguments + 2, uint16) = queueLength; + set_format_arg_body(arguments, 2, (uintptr_t)queueLength, sizeof(uint16)); stringId = STR_QUEUE_EMPTY; if (queueLength == 1) stringId = STR_QUEUE_ONE_PERSON; @@ -2615,7 +2615,7 @@ static rct_string_id window_ride_get_status_station(rct_window *w, void *argumen stringId = STR_QUEUE_PEOPLE; } - RCT2_GLOBAL((uintptr_t)arguments + 0, rct_string_id) = stringId; + set_format_arg_body(arguments, 0, (uintptr_t)stringId, sizeof(rct_string_id)); return STR_BLACK_STRING; }