Move gLastEntranceStyle to GameState_t

This commit is contained in:
Harry Hopkinson authored and GitHub committed 2024-03-09 11:27:05 +01:00
1 parent d0592e0887
commit 048276b67a
11 files changed
+24 -22

No files matched your search

@@ -487,10 +487,10 @@ void FinishObjectSelection()
SetEveryRideEntryInvented();
auto& objManager = OpenRCT2::GetContext()->GetObjectManager();
gLastEntranceStyle = objManager.GetLoadedObjectEntryIndex("rct2.station.plain");
if (gLastEntranceStyle == OBJECT_ENTRY_INDEX_NULL)
gameState.LastEntranceStyle = objManager.GetLoadedObjectEntryIndex("rct2.station.plain");
if (gameState.LastEntranceStyle == OBJECT_ENTRY_INDEX_NULL)
{
gLastEntranceStyle = 0;
gameState.LastEntranceStyle = 0;
}
gameState.EditorStep = EditorStep::RollercoasterDesigner;