Track saving was broken due to using wrong coordinates

This commit is contained in:
duncanspumpkin 2015-12-11 09:57:08 +00:00
parent 3ba4677bd9
commit 9f1b38f337
1 changed files with 1 additions and 1 deletions

View File

@ -2665,7 +2665,7 @@ int tracked_ride_to_td6(uint8 rideIndex, rct_track_td6* track_design, uint8* tra
.y = trackBeginEnd.begin_y
};
if (!track_block_get_previous(trackBeginEnd.begin_x, trackBeginEnd.begin_y, trackBeginEnd.begin_element, &trackBeginEnd)) {
if (!track_block_get_previous(trackBeginEnd.end_x, trackBeginEnd.end_y, trackBeginEnd.begin_element, &trackBeginEnd)) {
trackElement = lastGood;
break;
}