summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);