summaryrefslogtreecommitdiff
path: root/src/bootstrap_gui.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2020-12-05 15:03:16 +0100
committerGitHub <noreply@github.com>2020-12-05 15:03:16 +0100
commit6ad3cca4caff8f1a45f96c69e1193a97dc072cc3 (patch)
tree507dc51646c91619d38972ecc9300c5c73d25510 /src/bootstrap_gui.cpp
parenta06fe8e8a7d749f1fbd08102a9516acd51171b24 (diff)
downloadopenttd-6ad3cca4caff8f1a45f96c69e1193a97dc072cc3.tar.xz
Fix a49fdb7ebb: bootstrap crash when trying to load new baseset (#8353)
Using nullptr as "name" crashes on "name.empty()". Use an empty string instead.
Diffstat (limited to 'src/bootstrap_gui.cpp')
-rw-r--r--src/bootstrap_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap_gui.cpp b/src/bootstrap_gui.cpp
index d2445c23a..a0f040d1a 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;