summaryrefslogtreecommitdiff
path: root/src/net/eathena/petrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-01 20:33:27 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-01 20:33:27 +0300
commit92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5 (patch)
tree4982a05f077153cfde78aaa6a32e3ea1d91f164d /src/net/eathena/petrecv.cpp
parentf343b136913477cb0593dff4cad642cb3038d98d (diff)
downloadplus-92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5.tar.gz
plus-92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5.tar.bz2
plus-92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5.tar.xz
plus-92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5.zip
Sort more packets. Add version checks inside packets.
Diffstat (limited to 'src/net/eathena/petrecv.cpp')
-rw-r--r--src/net/eathena/petrecv.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/petrecv.cpp b/src/net/eathena/petrecv.cpp
index da209e268..d3823f6e6 100644
--- a/src/net/eathena/petrecv.cpp
+++ b/src/net/eathena/petrecv.cpp
@@ -183,7 +183,10 @@ void PetRecv::processPetStatus(Net::MessageIn &msg)
info->hungry = hungry;
info->intimacy = intimacy;
info->equip = equip;
- info->race = race;
+ if (msg.getVersion() >= 20081126)
+ info->race = race;
+ else
+ info->race = 0;
}
void PetRecv::processPetFood(Net::MessageIn &msg)