From 7fa20ba5839d8674d9c4023f55419fbc21e00c07 Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Tue, 5 Oct 2010 14:00:35 +0200 Subject: Fixing segmentation fault in social window How to reproduce the bug: * Press button Leave in social window. * In the confirm dialog press No. * Then switching character makes the client crash. Trivial fix. --- src/gui/socialwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp index 7944e210..ec414836 100644 --- a/src/gui/socialwindow.cpp +++ b/src/gui/socialwindow.cpp @@ -144,7 +144,7 @@ public: mGuild->getName().c_str()), BY_SERVER); mConfirmDialog = NULL; } - else if (event.getId() == "~yes") + else if (event.getId() == "no") { mConfirmDialog = NULL; } @@ -223,7 +223,7 @@ public: mParty->getName().c_str()), BY_SERVER); mConfirmDialog = NULL; } - else if (event.getId() == "~yes") + else if (event.getId() == "no") { mConfirmDialog = NULL; } -- cgit v1.2.3-70-g09d2