From 04170f5855ba15a103ac9723f1f9c92114929c47 Mon Sep 17 00:00:00 2001 From: Deve Date: Mon, 21 May 2018 21:51:04 +0200 Subject: [PATCH] Avoid a crash on exit. Still NetworkingLobby::unloaded() probably shouldn't be executed if networking screen is never opened, but initialize variables doesn't hurt anyway --- src/states_screens/networking_lobby.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/states_screens/networking_lobby.cpp b/src/states_screens/networking_lobby.cpp index d37bdd3e3..dee5b91ef 100644 --- a/src/states_screens/networking_lobby.cpp +++ b/src/states_screens/networking_lobby.cpp @@ -63,7 +63,17 @@ using namespace GUIEngine; // ---------------------------------------------------------------------------- NetworkingLobby::NetworkingLobby() : Screen("online/networking_lobby.stkgui") { + m_server_info_height = 0; + + m_back_widget = NULL; + m_header = NULL; + m_text_bubble = NULL; + m_exit_widget = NULL; + m_start_button = NULL; m_player_list = NULL; + m_chat_box = NULL; + m_send_button = NULL; + m_icon_bank = NULL; } // NetworkingLobby // ----------------------------------------------------------------------------