summaryrefslogtreecommitdiff
path: root/src/net/ea/partyhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/partyhandler.cpp')
-rw-r--r--src/net/ea/partyhandler.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp
index 157898dc..3e12e4b4 100644
--- a/src/net/ea/partyhandler.cpp
+++ b/src/net/ea/partyhandler.cpp
@@ -68,11 +68,8 @@ PartyHandler::PartyHandler():
PartyHandler::~PartyHandler()
{
- if (partyTab)
- {
- delete partyTab;
- partyTab = 0;
- }
+ delete partyTab;
+ partyTab = 0;
}
void PartyHandler::handleMessage(Net::MessageIn &msg)
@@ -104,10 +101,9 @@ void PartyHandler::handleMessage(Net::MessageIn &msg)
bool leader = msg.readInt8() == 0;
bool online = msg.readInt8() == 0;
- PartyMember *member = new PartyMember(PARTY_ID, id, nick);
+ PartyMember *member = eaParty->addMember(id, nick);
member->setLeader(leader);
member->setOnline(online);
- eaParty->addMember(member);
}
}
break;