From 8801d17ed5369b69ab96e852cc6fb13f7f551526 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Thu, 22 Aug 2024 21:48:43 -0400 Subject: [PATCH] Fix crash due to erroneous false load AppleEvents when command-line arguments are passed The fix is just to initialize the dialog subsystem AFTER the main window, causing the AppleEvent handler to output the load failure to the log instead of showing a dialog --- src/game/boe.main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game/boe.main.cpp b/src/game/boe.main.cpp index aafc0b0a..164c2a75 100644 --- a/src/game/boe.main.cpp +++ b/src/game/boe.main.cpp @@ -329,9 +329,8 @@ void init_boe(int argc, char* argv[]) { init_tiling(); init_snd_tool(); - init_ui(); - adjust_window_mode(); + init_ui(); // If we don't do this now it'll flash white to start with mainPtr.clear(sf::Color::Black); mainPtr.display();