diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-05-15 18:42:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-05-15 19:29:09 +0300 |
commit | 28155aa478caf68fc5d73e2c38a48ba94c3ecbef (patch) | |
tree | e42a91f656c28a7173eaaf652444d67192badb97 /src/net | |
parent | 21fe0039406e8ce5cb664aff89875638e4a31d8a (diff) | |
download | mv-28155aa478caf68fc5d73e2c38a48ba94c3ecbef.tar.gz mv-28155aa478caf68fc5d73e2c38a48ba94c3ecbef.tar.bz2 mv-28155aa478caf68fc5d73e2c38a48ba94c3ecbef.tar.xz mv-28155aa478caf68fc5d73e2c38a48ba94c3ecbef.zip |
Fix special card constants for clients with item id with size 4
Also drop support for 65535 item id on old packet versions.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/messagein.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp index 22d0510ce..b0abf9999 100644 --- a/src/net/messagein.cpp +++ b/src/net/messagein.cpp @@ -216,7 +216,7 @@ uint32_t MessageIn::readUInt32(const char *const str) int MessageIn::readItemId(const char *const str) { if (itemIdLen == 2) - return readUInt16(str); + return readInt16(str); return readInt32(str); } |