From de90520de303659fe639794544c2e19d462b3907 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Jul 2018 03:02:37 +0300 Subject: Add support for changed item id size in packets. From some packet version hercules support item id fields as int32. --- src/net/tmwa/loginrecv.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/net/tmwa/loginrecv.cpp') diff --git a/src/net/tmwa/loginrecv.cpp b/src/net/tmwa/loginrecv.cpp index 67e6b21e8..91d11b05e 100644 --- a/src/net/tmwa/loginrecv.cpp +++ b/src/net/tmwa/loginrecv.cpp @@ -41,6 +41,7 @@ #include "debug.h" extern int packetVersion; +extern int itemIdLen; namespace TmwAthena { @@ -55,6 +56,7 @@ enum ServerFlags void LoginRecv::processServerVersion(Net::MessageIn &msg) { packetVersion = 0; + itemIdLen = 2; const uint8_t b1 = msg.readUInt8("b1"); // -1 const uint8_t b2 = msg.readUInt8("b2"); const uint8_t b3 = msg.readUInt8("b3"); -- cgit v1.2.3-60-g2f50