From 22cec6d1f5ca36f1109234ab71b17ffceaef8c6f Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Sat, 3 Sep 2016 09:31:00 +0100 Subject: [PATCH] Fix #4296. Metal A supports correctly branch --- src/paint/supports.c | 2 ++ 1 file changed, 2 insertions(+) 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;