From 6ad3cca4caff8f1a45f96c69e1193a97dc072cc3 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sat, 5 Dec 2020 15:03:16 +0100 Subject: [PATCH] Fix a49fdb7ebb: bootstrap crash when trying to load new baseset (#8353) Using nullptr as "name" crashes on "name.empty()". Use an empty string instead. --- src/bootstrap_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap_gui.cpp b/src/bootstrap_gui.cpp index d2445c23a4..a0f040d1aa 100644 --- a/src/bootstrap_gui.cpp +++ b/src/bootstrap_gui.cpp @@ -253,7 +253,7 @@ bool HandleBootstrap() if (_exit_game) return false; /* Try to probe the graphics. Should work this time. */ - if (!BaseGraphics::SetSet(nullptr)) goto failure; + if (!BaseGraphics::SetSet({})) goto failure; /* Finally we can continue heading for the menu. */ _game_mode = GM_MENU;