diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/partyhandler.cpp | 5 | ||||
-rw-r--r-- | src/net/partyhandler.h | 1 |
2 files changed, 4 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: diff --git a/src/net/partyhandler.h b/src/net/partyhandler.h index f4107b67..8f3489eb 100644 --- a/src/net/partyhandler.h +++ b/src/net/partyhandler.h @@ -27,6 +27,7 @@ class Player; enum PartyShare { + PARTY_SHARE_UNKNOWN = -1, PARTY_SHARE_NO, PARTY_SHARE, PARTY_SHARE_NOT_POSSIBLE = 2 |