summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 18:48:13 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:21 +0300
commit8b3f4be6a5a38870516ee11e47d251fc3e3a5d4a (patch)
tree3c0e31e0b438d3b1e4c3f2e468f6b752d0c330f7 /src
parentec7d979c3deade2cc29481dca389beb57af1f75e (diff)
downloadplus-8b3f4be6a5a38870516ee11e47d251fc3e3a5d4a.tar.gz
plus-8b3f4be6a5a38870516ee11e47d251fc3e3a5d4a.tar.bz2
plus-8b3f4be6a5a38870516ee11e47d251fc3e3a5d4a.tar.xz
plus-8b3f4be6a5a38870516ee11e47d251fc3e3a5d4a.zip
fix initialisation in party.
Diffstat (limited to 'src')
-rw-r--r--src/party.cpp4
1 files changed, 2 insertions, 2 deletions
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);