summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-03 11:58:11 +0100
committermadmaxoft <github@xoft.cz>2013-11-03 11:59:07 +0100
commitdacd6a5274fa18f626bdd7ec9014b6581afb2e18 (patch)
tree55bb3533dbfd4dc8b9d45dd75c5b43d7e01d1a58
parentClientHandle: Fixed an error in player-joining hook. (diff)
downloadcuberite-dacd6a5274fa18f626bdd7ec9014b6581afb2e18.tar
cuberite-dacd6a5274fa18f626bdd7ec9014b6581afb2e18.tar.gz
cuberite-dacd6a5274fa18f626bdd7ec9014b6581afb2e18.tar.bz2
cuberite-dacd6a5274fa18f626bdd7ec9014b6581afb2e18.tar.lz
cuberite-dacd6a5274fa18f626bdd7ec9014b6581afb2e18.tar.xz
cuberite-dacd6a5274fa18f626bdd7ec9014b6581afb2e18.tar.zst
cuberite-dacd6a5274fa18f626bdd7ec9014b6581afb2e18.zip
Diffstat (limited to '')
-rw-r--r--source/ByteBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/ByteBuffer.cpp b/source/ByteBuffer.cpp
index bccd1c48b..1cdd2f430 100644
--- a/source/ByteBuffer.cpp
+++ b/source/ByteBuffer.cpp
@@ -195,7 +195,7 @@ int cByteBuffer::GetUsedSpace(void) const
{
CHECK_THREAD;
CheckValid();
- return m_BufferSize - GetFreeSpace();
+ return m_BufferSize - GetFreeSpace() - 1;
}