summaryrefslogtreecommitdiff
path: root/src/net/eathena/partyrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-01 20:25:10 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-01 20:25:10 +0300
commitf343b136913477cb0593dff4cad642cb3038d98d (patch)
tree1b742484bfb393fbdcd30871f2bdadff1809dc7e /src/net/eathena/partyrecv.cpp
parent5f4a9b697438f38629a9839105e7a284b39e0cde (diff)
downloadmanaverse-f343b136913477cb0593dff4cad642cb3038d98d.tar.gz
manaverse-f343b136913477cb0593dff4cad642cb3038d98d.tar.bz2
manaverse-f343b136913477cb0593dff4cad642cb3038d98d.tar.xz
manaverse-f343b136913477cb0593dff4cad642cb3038d98d.zip
Sort more packets. Add version checks inside packets.
Diffstat (limited to 'src/net/eathena/partyrecv.cpp')
-rw-r--r--src/net/eathena/partyrecv.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/net/eathena/partyrecv.cpp b/src/net/eathena/partyrecv.cpp
index c5f04008f..e23959a1c 100644
--- a/src/net/eathena/partyrecv.cpp
+++ b/src/net/eathena/partyrecv.cpp
@@ -90,11 +90,14 @@ void PartyRecv::processPartySettings(Net::MessageIn &msg)
}
msg.readInt32("party exp");
- const PartyShareT exp = static_cast<PartyShareT>(
- msg.readInt8("share exp"));
- const PartyShareT item = static_cast<PartyShareT>(
- msg.readInt8("share item"));
- Ea::PartyRecv::processPartySettingsContinue(msg, exp, item);
+ if (msg.getVersion() >= 20090603)
+ {
+ const PartyShareT exp = static_cast<PartyShareT>(
+ msg.readInt8("share exp"));
+ const PartyShareT item = static_cast<PartyShareT>(
+ msg.readInt8("share item"));
+ Ea::PartyRecv::processPartySettingsContinue(msg, exp, item);
+ }
}
void PartyRecv::processPartyInfo(Net::MessageIn &msg)