diff options
Diffstat (limited to 'Minecraft.World/ExplodePacket.cpp')
| -rw-r--r-- | Minecraft.World/ExplodePacket.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Minecraft.World/ExplodePacket.cpp b/Minecraft.World/ExplodePacket.cpp index 07626161..88bf00c6 100644 --- a/Minecraft.World/ExplodePacket.cpp +++ b/Minecraft.World/ExplodePacket.cpp @@ -52,6 +52,8 @@ void ExplodePacket::read(DataInputStream *dis) //throws IOException r = dis->readFloat(); int count = dis->readInt(); + if (count < 0 || count > 32768) count = 0; + int xp = static_cast<int>(x); int yp = static_cast<int>(y); int zp = static_cast<int>(z); |
