summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-11-02 09:18:41 -0700
committerJared Adams <jaxad0127@gmail.com>2009-11-02 09:18:41 -0700
commitb98b1702bc3bac8c7a7815aa61b6b26d90a61df0 (patch)
tree5a2b4c214e28a7c560ead43cfe2e52338dd0fb27 /src/net
parentc6d137598a6351dda277c353b6d5058b944376a8 (diff)
downloadmana-client-b98b1702bc3bac8c7a7815aa61b6b26d90a61df0.tar.gz
mana-client-b98b1702bc3bac8c7a7815aa61b6b26d90a61df0.tar.bz2
mana-client-b98b1702bc3bac8c7a7815aa61b6b26d90a61df0.tar.xz
mana-client-b98b1702bc3bac8c7a7815aa61b6b26d90a61df0.zip
Fix an uninitialized value in eAthena's netcode
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/partyhandler.cpp5
-rw-r--r--src/net/partyhandler.h1
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