summaryrefslogtreecommitdiffstats
path: root/src/Chunk.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-23 15:34:19 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-23 15:34:19 +0100
commit945631ba06fcba24c84017f36544667299c591fb (patch)
treed69ecdd8156a31b82ed408f1cc5a309a9eab8a86 /src/Chunk.h
parentMerge pull request #810 from worktycho/size_t_lua (diff)
downloadcuberite-945631ba06fcba24c84017f36544667299c591fb.tar
cuberite-945631ba06fcba24c84017f36544667299c591fb.tar.gz
cuberite-945631ba06fcba24c84017f36544667299c591fb.tar.bz2
cuberite-945631ba06fcba24c84017f36544667299c591fb.tar.lz
cuberite-945631ba06fcba24c84017f36544667299c591fb.tar.xz
cuberite-945631ba06fcba24c84017f36544667299c591fb.tar.zst
cuberite-945631ba06fcba24c84017f36544667299c591fb.zip
Diffstat (limited to 'src/Chunk.h')
-rw-r--r--src/Chunk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Chunk.h b/src/Chunk.h
index b3fa563cc..1b83bc540 100644
--- a/src/Chunk.h
+++ b/src/Chunk.h
@@ -421,7 +421,7 @@ private:
cChunkMap * m_ChunkMap;
// TODO: Make these pointers and don't allocate what isn't needed
- BLOCKTYPE m_BlockTypes [cChunkDef::NumBlocks];
+ std::vector<std::vector<BLOCKTYPE>> m_BlockTypes;
NIBBLETYPE m_BlockMeta [cChunkDef::NumBlocks / 2];
NIBBLETYPE m_BlockLight [cChunkDef::NumBlocks / 2];
NIBBLETYPE m_BlockSkyLight[cChunkDef::NumBlocks / 2];