diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-11-02 09:18:41 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-11-02 09:18:41 -0700 |
commit | b98b1702bc3bac8c7a7815aa61b6b26d90a61df0 (patch) | |
tree | 5a2b4c214e28a7c560ead43cfe2e52338dd0fb27 /src/net/ea | |
parent | c6d137598a6351dda277c353b6d5058b944376a8 (diff) | |
download | mana-b98b1702bc3bac8c7a7815aa61b6b26d90a61df0.tar.gz mana-b98b1702bc3bac8c7a7815aa61b6b26d90a61df0.tar.bz2 mana-b98b1702bc3bac8c7a7815aa61b6b26d90a61df0.tar.xz mana-b98b1702bc3bac8c7a7815aa61b6b26d90a61df0.zip |
Fix an uninitialized value in eAthena's netcode
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/partyhandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index f514c3b6..27e19392 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -42,7 +42,8 @@ Net::PartyHandler *partyHandler = 0; namespace EAthena { -PartyHandler::PartyHandler() +PartyHandler::PartyHandler(): + mShareExp(PARTY_SHARE_UNKNOWN), mShareItems(PARTY_SHARE_UNKNOWN) { static const Uint16 _messages[] = { SMSG_PARTY_CREATE, @@ -171,7 +172,7 @@ void PartyHandler::handleMessage(MessageIn &msg) case PARTY_SHARE_NO: if (mShareExp == PARTY_SHARE_NO) break; - mShareExp =PARTY_SHARE_NO; + mShareExp = PARTY_SHARE_NO; partyTab->chatLog(_("Experience sharing disabled."), BY_SERVER); break; case PARTY_SHARE_NOT_POSSIBLE: |