Skip to content

Commit

Permalink
Fix crash due to erroneous false load AppleEvents when command-line a…
Browse files Browse the repository at this point in the history
…rguments 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
  • Loading branch information
CelticMinstrel committed Aug 23, 2024
1 parent f2469d1 commit 8801d17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/game/boe.main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8801d17

Please sign in to comment.