diff --git a/src/paint/supports.c b/src/paint/supports.c index f66b73347e..f00f2ec2f6 100644 --- a/src/paint/supports.c +++ b/src/paint/supports.c @@ -497,6 +497,7 @@ bool metal_a_supports_paint_setup(int supportType, int segment, int special, int } sint16 originalHeight = height; + int originalSegment = segment; const uint8 rotation = get_current_rotation(); RCT2_GLOBAL(0x009E3294, sint16) = -1; @@ -619,6 +620,7 @@ bool metal_a_supports_paint_setup(int supportType, int segment, int special, int gSupportSegments[segment].slope = 0x20; height = originalHeight; + segment = originalSegment; if (special == 0) return true;