diff options
author | archshift <admin@archshift.com> | 2014-07-18 03:39:44 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-07-18 03:39:44 +0200 |
commit | 33b0a719da8ed8f76397f6003a5a9afa7079c090 (patch) | |
tree | 97b5e89c22cf80bed590d9462fda642672d5019b /src | |
parent | Generator: removed rnd definitions that are never read (diff) | |
download | cuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.tar cuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.tar.gz cuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.tar.bz2 cuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.tar.lz cuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.tar.xz cuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.tar.zst cuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/ProtocolRecognizer.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Protocol/ProtocolRecognizer.cpp b/src/Protocol/ProtocolRecognizer.cpp index d3aae65fe..3991b84de 100644 --- a/src/Protocol/ProtocolRecognizer.cpp +++ b/src/Protocol/ProtocolRecognizer.cpp @@ -953,7 +953,6 @@ bool cProtocolRecognizer::TryRecognizeLengthlessProtocol(void) bool cProtocolRecognizer::TryRecognizeLengthedProtocol(UInt32 a_PacketLengthRemaining) { UInt32 PacketType; - UInt32 NumBytesRead = (UInt32)m_Buffer.GetReadableSpace(); if (!m_Buffer.ReadVarInt(PacketType)) { return false; @@ -972,7 +971,6 @@ bool cProtocolRecognizer::TryRecognizeLengthedProtocol(UInt32 a_PacketLengthRema { return false; } - NumBytesRead -= (UInt32)m_Buffer.GetReadableSpace(); switch (ProtocolVersion) { case PROTO_VERSION_1_7_2: |