mirror of https://github.com/OpenTTD/OpenTTD
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
parent
a06fe8e8a7
commit
6ad3cca4ca
|
@ -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…
Reference in New Issue