summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol125.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-20 21:44:47 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-20 21:44:47 +0100
commitc96447007e1f6ee0b4cb40195b0af6bd950f8e53 (patch)
tree705afacbdeac08592431e7e08f650c284d7bf625 /source/Protocol/Protocol125.cpp
parentRecipe update by STR_Warrior (diff)
downloadcuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.tar
cuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.tar.gz
cuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.tar.bz2
cuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.tar.lz
cuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.tar.xz
cuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.tar.zst
cuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.zip
Diffstat (limited to 'source/Protocol/Protocol125.cpp')
-rw-r--r--source/Protocol/Protocol125.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp
index 58afcdcae..beac46c69 100644
--- a/source/Protocol/Protocol125.cpp
+++ b/source/Protocol/Protocol125.cpp
@@ -96,8 +96,10 @@ enum
{ \
if (!m_ReceivedData.Proc(Var)) \
{ \
+ m_ReceivedData.CheckValid(); \
return PARSE_INCOMPLETE; \
} \
+ m_ReceivedData.CheckValid(); \
}
@@ -111,7 +113,7 @@ typedef unsigned char Byte;
cProtocol125::cProtocol125(cClientHandle * a_Client) :
super(a_Client),
- m_ReceivedData(64 KiB)
+ m_ReceivedData(32 KiB)
{
}