mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 15:23:01 +01:00
Close windows before loading another save
This commit is contained in:
committed by
GitHub
parent
236f4afbd7
commit
0d6ed8efc5
@@ -7,6 +7,7 @@
|
|||||||
- Fix: [#22921] Wooden RollerCoaster flat to steep railings appear in front of track in front of them.
|
- Fix: [#22921] Wooden RollerCoaster flat to steep railings appear in front of track in front of them.
|
||||||
- Fix: [#22962] Fuzzy horizontal-to-vertical line transitions in charts.
|
- Fix: [#22962] Fuzzy horizontal-to-vertical line transitions in charts.
|
||||||
- Fix: [#23009] Scenarios from RCT Classic (.sea files) are not included in the scenario index.
|
- Fix: [#23009] Scenarios from RCT Classic (.sea files) are not included in the scenario index.
|
||||||
|
- Fix: [#23015] Crash when loading a save game when the construction window is still open.
|
||||||
|
|
||||||
0.4.15 (2024-10-06)
|
0.4.15 (2024-10-06)
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -267,6 +267,11 @@ namespace OpenRCT2::Ui::Windows
|
|||||||
char pathBuffer[MAX_PATH];
|
char pathBuffer[MAX_PATH];
|
||||||
SafeStrCpy(pathBuffer, path, sizeof(pathBuffer));
|
SafeStrCpy(pathBuffer, path, sizeof(pathBuffer));
|
||||||
|
|
||||||
|
// Closing this will cause a Ride window to pop up, so we have to do this to ensure that
|
||||||
|
// no windows are open (besides the toolbars and LoadSave window).
|
||||||
|
WindowCloseByClass(WindowClass::RideConstruction);
|
||||||
|
WindowCloseAllExceptClass(WindowClass::Loadsave);
|
||||||
|
|
||||||
auto& gameState = GetGameState();
|
auto& gameState = GetGameState();
|
||||||
|
|
||||||
switch (_type & 0x0F)
|
switch (_type & 0x0F)
|
||||||
|
|||||||
Reference in New Issue
Block a user