diff options
Diffstat (limited to 'src/net/eathena/playerrecv.cpp')
-rw-r--r-- | src/net/eathena/playerrecv.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/eathena/playerrecv.cpp b/src/net/eathena/playerrecv.cpp index 8f223363c..03909943e 100644 --- a/src/net/eathena/playerrecv.cpp +++ b/src/net/eathena/playerrecv.cpp @@ -251,7 +251,11 @@ void PlayerRecv::processPlayerHeal(Net::MessageIn &msg) return; const int type = msg.readInt16("var id"); - const int amount = msg.readInt16("value"); + int amount; + if (msg.getVersion() >= 20150513) + amount = msg.readInt32("value"); + else + amount = msg.readInt16("value"); if (type == Sp::HP) { const int base = PlayerInfo::getAttribute(Attributes::PLAYER_HP) + |