From dff8086726b22aa2df391f9b81474670b09c3dd9 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 4 Oct 2026 11:46:09 +0200 Subject: [PATCH] Fix #27233: `openrct2 parkinfo object` segfaults when called with a scenario --- distribution/changelog.txt | 1 + src/openrct2/command_line/ParkInfoCommands.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 4cd85ab7ab..4751d4532b 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -39,6 +39,7 @@ - Fix: [#27136] Guests keep waiting at a level crossing after the train has passed, due to faulty iteration over the track the train has vacated. - Fix: [#27212] Chain lifts are blue in screenshots taken from the command line. - Fix: [#27218] Tile inspector coordinate spinners are too short for coordinate 1000. +- Fix: [#27233] `openrct2 parkinfo objects` crashes when called with a scenario instead of save. - Fix: [#27234] [Plugin] Setting `TrackElement.seatRotation` fails on every ride except mazes, where it does not apply. 0.5.5 (2026-09-06) diff --git a/src/openrct2/command_line/ParkInfoCommands.cpp b/src/openrct2/command_line/ParkInfoCommands.cpp index 0930f9a741..82f92f050d 100644 --- a/src/openrct2/command_line/ParkInfoCommands.cpp +++ b/src/openrct2/command_line/ParkInfoCommands.cpp @@ -90,7 +90,7 @@ namespace OpenRCT2 // Save is an S6 (RCT2 format) parkImporter = ParkImporter::CreateS6(objectRepository); } - auto loadResult = parkImporter->LoadSavedGame(sourcePath.c_str()); + auto loadResult = parkImporter->Load(sourcePath.c_str(), false); Console::WriteLine("File contains the following objects: "); Console::WriteLine();