From b97837101e3ff3eb47d6d4f79cce38dfbeba04c9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Apr 2016 23:40:37 +0300 Subject: Add SMSG_PET_STATUS for old packet versions. --- src/net/eathena/petrecv.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/net/eathena/petrecv.cpp') diff --git a/src/net/eathena/petrecv.cpp b/src/net/eathena/petrecv.cpp index d3823f6e6..f30be4c50 100644 --- a/src/net/eathena/petrecv.cpp +++ b/src/net/eathena/petrecv.cpp @@ -169,7 +169,6 @@ void PetRecv::processPetStatus(Net::MessageIn &msg) const int hungry = msg.readInt16("hungry"); const int intimacy = msg.readInt16("intimacy"); const int equip = msg.readInt16("equip"); - const int race = msg.readInt16("class"); // Being *const being = PlayerInfo::getPetBeing(); // if (being) @@ -184,7 +183,7 @@ void PetRecv::processPetStatus(Net::MessageIn &msg) info->intimacy = intimacy; info->equip = equip; if (msg.getVersion() >= 20081126) - info->race = race; + info->race = msg.readInt16("class"); else info->race = 0; } -- cgit v1.2.3-60-g2f50