summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-11-14 19:18:59 +0100
committerGitHub <noreply@github.com>2021-11-14 19:18:59 +0100
commit95bc2eac222a12c049b1aef799ac280fa9123af4 (patch)
tree0239102e9332d5732dfeba8f0ee384dffa1012cc /src/Protocol
parentMiscellaneous fixes (#5320) (diff)
downloadcuberite-95bc2eac222a12c049b1aef799ac280fa9123af4.tar
cuberite-95bc2eac222a12c049b1aef799ac280fa9123af4.tar.gz
cuberite-95bc2eac222a12c049b1aef799ac280fa9123af4.tar.bz2
cuberite-95bc2eac222a12c049b1aef799ac280fa9123af4.tar.lz
cuberite-95bc2eac222a12c049b1aef799ac280fa9123af4.tar.xz
cuberite-95bc2eac222a12c049b1aef799ac280fa9123af4.tar.zst
cuberite-95bc2eac222a12c049b1aef799ac280fa9123af4.zip
Diffstat (limited to 'src/Protocol')
-rw-r--r--src/Protocol/Protocol_1_8.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol_1_8.cpp b/src/Protocol/Protocol_1_8.cpp
index e2e8ca499..4bbf5f93e 100644
--- a/src/Protocol/Protocol_1_8.cpp
+++ b/src/Protocol/Protocol_1_8.cpp
@@ -2880,7 +2880,7 @@ void cProtocol_1_8_0::HandleVanillaPluginMessage(cByteBuffer & a_ByteBuffer, con
// Read the payload and send it through to the clienthandle:
ContiguousByteBuffer Message;
- VERIFY(a_ByteBuffer.ReadSome(Message, a_ByteBuffer.GetReadableSpace() - 1));
+ VERIFY(a_ByteBuffer.ReadSome(Message, a_ByteBuffer.GetReadableSpace()));
m_Client->HandlePluginMessage(a_Channel, Message);
}