From 109f2df166a15261e2a43f1a73c7f4aeeb13b681 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Aug 2016 00:32:09 +0300 Subject: Remember id of own elemental. --- src/net/eathena/elementalrecv.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net/eathena') 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 -- cgit v1.2.3-70-g09d2