Fix crash when using --go in command line
authorJuozas Pocius <juozaspo@gmail.com>
Wed, 2 Aug 2017 13:40:38 +0000 (16:40 +0300)
committersfan5 <sfan5@live.de>
Thu, 3 Aug 2017 12:03:15 +0000 (14:03 +0200)
src/client/clientlauncher.h

index 8f8a01e2f554fc7a28557c34829bfcd29bd5ecc1..dd5e6b8d661b720e80cd9393bf84e9c6e55d6ce6 100644 (file)
@@ -60,7 +60,7 @@ protected:
        gui::IGUIFont *font = nullptr;
        SubgameSpec gamespec;
        WorldSpec worldspec;
-       bool simple_singleplayer_mode;
+       bool simple_singleplayer_mode = false;
 
        // These are set up based on the menu and other things
        // TODO: Are these required since there's already playername, password, etc