Fix a49fdb7ebb: bootstrap crash when trying to load new baseset (#8353)

Using nullptr as "name" crashes on "name.empty()". Use an empty
string instead.
pull/207/head
Patric Stout 4 years ago committed by GitHub
parent a06fe8e8a7
commit 6ad3cca4ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save