From 6992be87c3bf24256e168d96029be7897db65d83 Mon Sep 17 00:00:00 2001 From: tombomp <43040194+tombomp@users.noreply.github.com> Date: Mon, 15 Oct 2018 21:58:59 +0100 Subject: [PATCH] Fix #8090: Bug with maze design saving The exit wasn't being saved - ride_get_entrance_location was mistakenly called twice --- distribution/changelog.txt | 1 + src/openrct2/ride/TrackDesignSave.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index e3e497082b..879e6decfe 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -15,6 +15,7 @@ - Fix: [#8034] Vanilla sprites are broken when making screenshots from command line. - Fix: [#8045] Crash when switching between languages. - Fix: [#8062] In multiplayer warnings for unstable cheats are shown when disabling them. +- Fix: [#8090] Maze designs saved incorrectly. - Improved: [#2940] Allow mouse-dragging to set patrol area (Singleplayer only). - Improved: [#7730] Draw extreme vertical and lateral Gs red in the ride window's graph tab. - Improved: [#7930] Automatically create folders for custom content. diff --git a/src/openrct2/ride/TrackDesignSave.cpp b/src/openrct2/ride/TrackDesignSave.cpp index b9369fe377..8932f32dbc 100644 --- a/src/openrct2/ride/TrackDesignSave.cpp +++ b/src/openrct2/ride/TrackDesignSave.cpp @@ -944,7 +944,7 @@ static bool track_design_save_to_td6_for_maze(uint8_t rideIndex, rct_track_td6* maze++; numMazeElements++; - location = ride_get_entrance_location(rideIndex, 0); + location = ride_get_exit_location(rideIndex, 0); if (location.isNull()) { gGameCommandErrorText = STR_TRACK_TOO_LARGE_OR_TOO_MUCH_SCENERY;