aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/GameCommandPacket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/GameCommandPacket.cpp')
-rw-r--r--Minecraft.World/GameCommandPacket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/GameCommandPacket.cpp b/Minecraft.World/GameCommandPacket.cpp
index 17c5316a..ada5b04c 100644
--- a/Minecraft.World/GameCommandPacket.cpp
+++ b/Minecraft.World/GameCommandPacket.cpp
@@ -40,7 +40,7 @@ void GameCommandPacket::read(DataInputStream *dis)
command = static_cast<EGameCommand>(dis->readInt());
length = dis->readShort();
- if (length > 0 && length < Short::MAX_VALUE)
+ if (length > 0 && length <= Short::MAX_VALUE)
{
if(data.data != nullptr)
{