summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-04-07 13:43:43 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-04-07 13:43:43 +0200
commit74c4789c6f8f42c6df45ed1e355e562bdced908d (patch)
tree1130dda83a30bd644e0aaa9c953895e0c68bd5f4 /src/Chunk.cpp
parentBlocklight and skylight now compressed (diff)
downloadcuberite-74c4789c6f8f42c6df45ed1e355e562bdced908d.tar
cuberite-74c4789c6f8f42c6df45ed1e355e562bdced908d.tar.gz
cuberite-74c4789c6f8f42c6df45ed1e355e562bdced908d.tar.bz2
cuberite-74c4789c6f8f42c6df45ed1e355e562bdced908d.tar.lz
cuberite-74c4789c6f8f42c6df45ed1e355e562bdced908d.tar.xz
cuberite-74c4789c6f8f42c6df45ed1e355e562bdced908d.tar.zst
cuberite-74c4789c6f8f42c6df45ed1e355e562bdced908d.zip
Diffstat (limited to '')
-rw-r--r--src/Chunk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 7a3e63bd0..ede01a6cc 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -1624,7 +1624,7 @@ void cChunk::FastSetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockT
MarkDirty();
- if (m_BlockTypes.empty() || (index > m_BlockTypes.size() - 1) /* Vector starts from zero, .size() starts from 1 */)
+ if (m_BlockTypes.empty() || ((size_t)index > m_BlockTypes.size() - 1) /* Vector starts from zero, .size() starts from 1 */)
{
m_BlockTypes.resize(index + 1);
}
@@ -2569,7 +2569,7 @@ BLOCKTYPE cChunk::GetBlock(int a_BlockIdx) const
return 0;
}
- if (m_BlockTypes.empty() || (a_BlockIdx > m_BlockTypes.size() - 1) /* Vector starts from zero, .size() starts from 1 */)
+ if (m_BlockTypes.empty() || ((size_t)a_BlockIdx > m_BlockTypes.size() - 1) /* Vector starts from zero, .size() starts from 1 */)
{
return E_BLOCK_AIR;
}