Fix #1661. Track direction now remembered when deleteing last section

This commit is contained in:
duncanspumpkin committed 2015-10-04 20:52:27 +01:00
1 parent 9017e5ff86
commit 36917bd75a
1 file changed
+1 -1
+1 -1
View File
@@ -1771,7 +1771,7 @@ static void window_ride_construction_mouseup_demolish(rct_window* w)
sub_6C84CE();
if (!sub_6CAF80(_currentRideIndex, &outputElement)) {
sub_6CC3FB(_currentRideIndex);
_currentTrackPieceDirection = _currentTrackPieceDirection;
_currentTrackPieceDirection = direction;
if (!(slope & 0x100)) {
_currentTrackCurve = slope;
_previousTrackSlopeEnd = slopeEnd;