aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Glize <vincentglize@hotmail.fr>2018-05-10 13:50:06 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-05-10 13:50:06 +0200
commita292d19fd0726cdd192469fbfc5f85770d5819e3 (patch)
tree508122d07e2236e385d0d34e6461c1a7b268d324
parent50c33d9638c31e70e6111687b19d58ee990e744b (diff)
downloadminetest-a292d19fd0726cdd192469fbfc5f85770d5819e3.tar.gz
minetest-a292d19fd0726cdd192469fbfc5f85770d5819e3.tar.bz2
minetest-a292d19fd0726cdd192469fbfc5f85770d5819e3.zip
Fix crash guiConfirmRegistration quit menu (#7313)
-rw-r--r--src/gui/guiConfirmRegistration.cpp2
1 files changed, 1 insertions, 1 deletions
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()