summaryrefslogtreecommitdiff
path: root/src/net/eathena/petrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/petrecv.cpp')
-rw-r--r--src/net/eathena/petrecv.cpp3
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;
}