Skip to content

Commit

Permalink
Fix OpenRCT2#20253: Crash when displaying a Lay-Down RC’s half loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Gymnasiast committed Nov 12, 2023
1 parent af7086e commit 5729565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions distribution/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Fix: [#16453] Tile inspector invisibility shortcut does not use a game action.
- Fix: [#18199] Dots in the game save's name no longer get truncated.
- Fix: [#19722] “Forbid tree removal” restriction doesn't forbid removal of large scenery tree items.
- Fix: [#20253] Crash when displaying a Lay-Down RC’s half loop.
- Fix: [#20356] Cannot set tertiary colour on small scenery.
- Fix: [#20679] Android: game crashes at launch.
- Fix: [#20737] Spent money in player window underflows when getting refunds.
Expand Down
2 changes: 1 addition & 1 deletion src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10421,7 +10421,7 @@ static void LayDownRCTrackHalfLoopUninvertedDown(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::FlyerHalfLoopInvertedUp);
auto function = GetTrackPaintFunctionLayDownRC(TrackElemType::FlyerHalfLoopInvertedUp);
function(session, ride, 3 - trackSequence, direction, height, trackElement);
return;
}
Expand Down

0 comments on commit 5729565

Please sign in to comment.