diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-04 00:32:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-04 00:32:09 +0300 |
commit | 109f2df166a15261e2a43f1a73c7f4aeeb13b681 (patch) | |
tree | 78dc01b9e04b77948315bea3df618cff330aa29a /src/net/eathena/elementalrecv.cpp | |
parent | 7fec02806b7aece2504b1f9920b6252788067d86 (diff) | |
download | mv-109f2df166a15261e2a43f1a73c7f4aeeb13b681.tar.gz mv-109f2df166a15261e2a43f1a73c7f4aeeb13b681.tar.bz2 mv-109f2df166a15261e2a43f1a73c7f4aeeb13b681.tar.xz mv-109f2df166a15261e2a43f1a73c7f4aeeb13b681.zip |
Remember id of own elemental.
Diffstat (limited to 'src/net/eathena/elementalrecv.cpp')
-rw-r--r-- | src/net/eathena/elementalrecv.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/elementalrecv.cpp b/src/net/eathena/elementalrecv.cpp index 57f78619a..220364acc 100644 --- a/src/net/eathena/elementalrecv.cpp +++ b/src/net/eathena/elementalrecv.cpp @@ -59,7 +59,7 @@ void ElementalRecv::processElementalUpdateStatus(Net::MessageIn &msg) void ElementalRecv::processElementalInfo(Net::MessageIn &msg) { - msg.readInt32("elemental id"); + const BeingId id = msg.readBeingId("elemental id"); PlayerInfo::setStatBase(Attributes::ELEMENTAL_HP, msg.readInt32("hp")); PlayerInfo::setStatBase(Attributes::ELEMENTAL_MAX_HP, @@ -68,6 +68,7 @@ void ElementalRecv::processElementalInfo(Net::MessageIn &msg) msg.readInt32("sp")); PlayerInfo::setStatBase(Attributes::ELEMENTAL_MAX_MP, msg.readInt32("max sp")); + PlayerInfo::setElemental(id); } } // namespace EAthena |