mirror of https://github.com/OpenRCT2/OpenRCT2.git
Track saving was broken due to using wrong coordinates
This commit is contained in:
parent
3ba4677bd9
commit
9f1b38f337
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue