summaryrefslogtreecommitdiff
path: root/src/net/eathena/battlegroundrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/battlegroundrecv.cpp')
-rw-r--r--src/net/eathena/battlegroundrecv.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/net/eathena/battlegroundrecv.cpp b/src/net/eathena/battlegroundrecv.cpp
index ecbeb5ef2..515dc8ad6 100644
--- a/src/net/eathena/battlegroundrecv.cpp
+++ b/src/net/eathena/battlegroundrecv.cpp
@@ -107,9 +107,17 @@ void BattleGroundRecv::processBattleUpdateHp(Net::MessageIn &msg)
{
UNIMPLIMENTEDPACKET;
msg.readBeingId("account id");
- msg.readString(24, "name");
- msg.readInt16("hp");
- msg.readInt16("max hp");
+ if (msg.getVersion() >= 20140613)
+ {
+ msg.readInt32("hp");
+ msg.readInt32("max hp");
+ }
+ else
+ {
+ msg.readString(24, "name");
+ msg.readInt16("hp");
+ msg.readInt16("max hp");
+ }
}
} // namespace EAthena