From c3f82c53db08cc8919b54d53b38a8673f64e5dd8 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 6 Sep 2012 18:17:47 +0000 Subject: Fixed slot parsing in 1.2.5 causing weird behavior ( http://forum.mc-server.org/showthread.php?tid=551&pid=4413#pid4413 ) Also added some asserts into ByteBuffer so that this won't happen again. git-svn-id: http://mc-server.googlecode.com/svn/trunk@842 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Protocol125.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/Protocol125.cpp') diff --git a/source/Protocol125.cpp b/source/Protocol125.cpp index 1927013da..da7e880ad 100644 --- a/source/Protocol125.cpp +++ b/source/Protocol125.cpp @@ -1310,7 +1310,7 @@ int cProtocol125::ParseItem(cItem & a_Item) HANDLE_PACKET_READ(ReadBEShort, short, EnchantNumBytes); - if (EnchantNumBytes == 0) + if (EnchantNumBytes <= 0) { return PARSE_OK; } -- cgit v1.2.3