From: Vincent Glize Date: Thu, 10 May 2018 11:50:06 +0000 (+0200) Subject: Fix crash guiConfirmRegistration quit menu (#7313) X-Git-Tag: 5.0.0~417 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a292d19fd0726cdd192469fbfc5f85770d5819e3;p=oweals%2Fminetest.git Fix crash guiConfirmRegistration quit menu (#7313) --- diff --git a/src/gui/guiConfirmRegistration.cpp b/src/gui/guiConfirmRegistration.cpp index 81033eebf..92ca94d42 100644 --- a/src/gui/guiConfirmRegistration.cpp +++ b/src/gui/guiConfirmRegistration.cpp @@ -158,13 +158,13 @@ void GUIConfirmRegistration::drawMenu() void GUIConfirmRegistration::closeMenu(bool goNext) { - quitMenu(); if (goNext) { m_client->confirmRegistration(); } else { *m_aborted = true; infostream << "Connect aborted [Escape]" << std::endl; } + quitMenu(); } void GUIConfirmRegistration::acceptInput()