1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

Fix #21054: No entrance style selected by default in track designer

This commit is contained in:
Severin Paul Höfer
2024-01-19 23:42:44 +01:00
committed by GitHub
parent 33523c98c2
commit 39a37f14eb
2 changed files with 9 additions and 0 deletions

View File

@@ -483,6 +483,14 @@ void FinishObjectSelection()
{
SetEveryRideTypeInvented();
SetEveryRideEntryInvented();
auto& objManager = OpenRCT2::GetContext()->GetObjectManager();
gLastEntranceStyle = objManager.GetLoadedObjectEntryIndex("rct2.station.plain");
if (gLastEntranceStyle == OBJECT_ENTRY_INDEX_NULL)
{
gLastEntranceStyle = 0;
}
gEditorStep = EditorStep::RollercoasterDesigner;
GfxInvalidateScreen();
}