From cdaddaa00dd22f12a0ae5e93a6cbb9e604b23383 Mon Sep 17 00:00:00 2001 From: Ted John Date: Thu, 8 Sep 2016 22:06:39 +0100 Subject: [PATCH] Fix #4385: Wrong numbers in guests thoughts summary get_arguments_from_peep was not setting the output thought arguments when a guest had no valid thought. --- src/windows/guest_list.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/windows/guest_list.c b/src/windows/guest_list.c index 5d457afa8a..e9431dda38 100644 --- a/src/windows/guest_list.c +++ b/src/windows/guest_list.c @@ -867,6 +867,9 @@ static void get_arguments_from_peep(rct_peep *peep, uint32 *argument_1, uint32* peep_thought_set_format_args(thought); memcpy(argument_1, gCommonFormatArgs, sizeof(*argument_1)); memcpy(argument_2, gCommonFormatArgs + sizeof(*argument_1), sizeof(*argument_2)); + } else { + *argument_1 = 0; + *argument_2 = 0; } break; }