diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-04-11 16:43:00 +0200 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-04-11 16:43:00 +0200 |
commit | d5f7c6029199ab514cd1ae9a69abfc8b506bdc8c (patch) | |
tree | 05e4825c42f44a76e99033d69ea146fab417eaca /src | |
parent | e132c8263b443385d7f32267aa79f22b10cf60b8 (diff) | |
download | mana-d5f7c6029199ab514cd1ae9a69abfc8b506bdc8c.tar.gz mana-d5f7c6029199ab514cd1ae9a69abfc8b506bdc8c.tar.bz2 mana-d5f7c6029199ab514cd1ae9a69abfc8b506bdc8c.tar.xz mana-d5f7c6029199ab514cd1ae9a69abfc8b506bdc8c.zip |
Fixing uninitialized variables in guild invite
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/socialwindow.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp index b4321b25..07f37eec 100644 --- a/src/gui/socialwindow.cpp +++ b/src/gui/socialwindow.cpp @@ -310,6 +310,7 @@ private: SocialWindow::SocialWindow() : Window(_("Social")), + mGuildInvited(0), mGuildAcceptDialog(NULL), mPartyAcceptDialog(NULL) { @@ -459,14 +460,12 @@ void SocialWindow::action(const gcn::ActionEvent &event) // check if they accepted the invite if (eventId == "yes") { - SERVER_NOTICE(strprintf(_("Accepted guild invite from %s."), - mPartyInviter.c_str())) + SERVER_NOTICE(_("Accepted guild invite")) Net::getGuildHandler()->inviteResponse(mGuildInvited, true); } else if (eventId == "no") { - SERVER_NOTICE(strprintf(_("Rejected guild invite from %s."), - mPartyInviter.c_str())) + SERVER_NOTICE(_("Rejected guild invite.")) Net::getGuildHandler()->inviteResponse(mGuildInvited, false); } |