diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-01 20:33:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-01 20:33:27 +0300 |
commit | 92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5 (patch) | |
tree | 4982a05f077153cfde78aaa6a32e3ea1d91f164d /src/net/eathena/petrecv.cpp | |
parent | f343b136913477cb0593dff4cad642cb3038d98d (diff) | |
download | mv-92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5.tar.gz mv-92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5.tar.bz2 mv-92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5.tar.xz mv-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.cpp | 5 |
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) |