1
0
Fork 0

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/8356/head
Patric Stout 2020-12-05 15:03:16 +01:00 committed by GitHub
parent a06fe8e8a7
commit 6ad3cca4ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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