From 28155aa478caf68fc5d73e2c38a48ba94c3ecbef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 15 May 2019 18:42:27 +0300 Subject: Fix special card constants for clients with item id with size 4 Also drop support for 65535 item id on old packet versions. --- src/net/messagein.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net') 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); } -- cgit v1.2.3-70-g09d2