From 8b3f4be6a5a38870516ee11e47d251fc3e3a5d4a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 18:48:13 +0300 Subject: fix initialisation in party. --- src/party.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/party.cpp') diff --git a/src/party.cpp b/src/party.cpp index b6594672a..4cd4ff147 100644 --- a/src/party.cpp +++ b/src/party.cpp @@ -77,8 +77,8 @@ Party::~Party() PartyMember *Party::addMember(const int id, const std::string &name) { - PartyMember *m; - if ((m = getMember(id))) + PartyMember *m = getMember(id); + if (m) return m; m = new PartyMember(this, id, name); -- cgit v1.2.3-70-g09d2