From e7688ad51b2b2d4203ce2af32723debbe395309d Mon Sep 17 00:00:00 2001 From: ZedThree Date: Sun, 1 Jun 2014 14:35:03 +0200 Subject: [PATCH] Fix monthyear format bug --- src/string_ids.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/string_ids.c b/src/string_ids.c index 2ce1f8085e..805049777d 100644 --- a/src/string_ids.c +++ b/src/string_ids.c @@ -1407,6 +1407,7 @@ void format_string_code(unsigned char format_code, char **dest, char **args) formatString[0] = FORMAT_MONTH; formatString[8] = FORMAT_COMMA16; format_string_part_from_raw(dest, formatString, (char**)&dateArgs2); + (*dest)--; break; case FORMAT_MONTH: // Pop argument @@ -1674,4 +1675,4 @@ void reset_saved_strings() { for (int i = 0; i < 1024; i++) { RCT2_ADDRESS(0x135A8F4, uint8)[i * 32] = 0; } -} \ No newline at end of file +}