diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-03 23:40:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-03 23:40:37 +0300 |
commit | b97837101e3ff3eb47d6d4f79cce38dfbeba04c9 (patch) | |
tree | c7f986196a20d6989e160c9bf0634d6303a8711c /src/net/eathena/petrecv.cpp | |
parent | bae0bf20b36f224796af64298f6139365e97b815 (diff) | |
download | manaverse-b97837101e3ff3eb47d6d4f79cce38dfbeba04c9.tar.gz manaverse-b97837101e3ff3eb47d6d4f79cce38dfbeba04c9.tar.bz2 manaverse-b97837101e3ff3eb47d6d4f79cce38dfbeba04c9.tar.xz manaverse-b97837101e3ff3eb47d6d4f79cce38dfbeba04c9.zip |
Add SMSG_PET_STATUS for old packet versions.
Diffstat (limited to 'src/net/eathena/petrecv.cpp')
-rw-r--r-- | src/net/eathena/petrecv.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |