1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix Tracks Manager crash on closing the tracks list

This commit is contained in:
Michael Steenbeek
2021-11-01 18:32:55 +01:00
committed by GitHub
parent 2e063e6df8
commit af78bbb448

View File

@@ -262,7 +262,8 @@ public:
// try to load the track manager again, and an infinite loop will result.
if ((gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) && gScreenAge != 0)
{
Close();
window_close_by_number(WC_MANAGE_TRACK_DESIGN, number);
window_close_by_number(WC_TRACK_DELETE_PROMPT, number);
Editor::LoadTrackManager();
}
}