diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-18 18:48:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:21 +0300 |
commit | 8b3f4be6a5a38870516ee11e47d251fc3e3a5d4a (patch) | |
tree | 3c0e31e0b438d3b1e4c3f2e468f6b752d0c330f7 | |
parent | ec7d979c3deade2cc29481dca389beb57af1f75e (diff) | |
download | manaverse-8b3f4be6a5a38870516ee11e47d251fc3e3a5d4a.tar.gz manaverse-8b3f4be6a5a38870516ee11e47d251fc3e3a5d4a.tar.bz2 manaverse-8b3f4be6a5a38870516ee11e47d251fc3e3a5d4a.tar.xz manaverse-8b3f4be6a5a38870516ee11e47d251fc3e3a5d4a.zip |
fix initialisation in party.
-rw-r--r-- | src/party.cpp | 4 |
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); |