diff --git a/src/paint/paint.c b/src/paint/paint.c index 8e80cd6abf..72ac7807a5 100644 --- a/src/paint/paint.c +++ b/src/paint/paint.c @@ -429,10 +429,10 @@ void sub_685EBC(money32 amount, uint16 string_id, sint16 y, sint16 z, sint8 y_of ps->string_id = string_id; ps->next = 0; ps->args[0] = amount; - ps->args[4] = y; - ps->args[8] = y_offsets; - ps->args[12] = 0; - ps->y_offsets = y_offsets; + ps->args[1] = y; + ps->args[2] = (int) y_offsets; + ps->args[3] = 0; + ps->y_offsets = (uint8 *) y_offsets; rct_xyz16 position = {.x = RCT2_GLOBAL(0x9DE568, sint16), .y = RCT2_GLOBAL(0x9DE56C, sint16), .z = z}; rct_xy16 coord = coordinate_3d_to_2d(&position, rotation); diff --git a/src/paint/paint.h b/src/paint/paint.h index 4aa19601f2..fff2e0c34c 100644 --- a/src/paint/paint.h +++ b/src/paint/paint.h @@ -77,7 +77,7 @@ struct paint_string_struct { paint_string_struct *next; // 0x02 uint16 x; // 0x06 uint16 y; // 0x08 - uint8 args[16]; // 0x0A + uint32 args[4]; // 0x0A uint8 *y_offsets; // 0x1A }; diff --git a/src/paint/sprite/misc.c b/src/paint/sprite/misc.c index 86198a8e50..b1685908a0 100644 --- a/src/paint/sprite/misc.c +++ b/src/paint/sprite/misc.c @@ -60,7 +60,7 @@ void misc_paint(rct_sprite *misc, int imageDirection) stringId = 1389; // {OUTLINE}{RED}- {CURRENCY} } - sub_685EBC(amount, stringId, moneyEffect.y, moneyEffect.z, &money_wave[moneyEffect.wiggle % 22], moneyEffect.offset_x, get_current_rotation()); + sub_685EBC(amount, stringId, moneyEffect.y, moneyEffect.z, (sint8 *) &money_wave[moneyEffect.wiggle % 22], moneyEffect.offset_x, get_current_rotation()); break; }