diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-05-03 15:07:56 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-05-03 15:07:56 +0200 |
commit | ec407dd27dc35b5903fdddf2bad307784842d679 (patch) | |
tree | 69c699b9242fcccf4b7ee865b0c6a9842329c0d4 /src/BlockArea.h | |
parent | cCHunkBuffer that compiles with TestGlobals.h (diff) | |
parent | Seperate instructions for OSX and Linux (diff) | |
download | cuberite-ec407dd27dc35b5903fdddf2bad307784842d679.tar cuberite-ec407dd27dc35b5903fdddf2bad307784842d679.tar.gz cuberite-ec407dd27dc35b5903fdddf2bad307784842d679.tar.bz2 cuberite-ec407dd27dc35b5903fdddf2bad307784842d679.tar.lz cuberite-ec407dd27dc35b5903fdddf2bad307784842d679.tar.xz cuberite-ec407dd27dc35b5903fdddf2bad307784842d679.tar.zst cuberite-ec407dd27dc35b5903fdddf2bad307784842d679.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockArea.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BlockArea.h b/src/BlockArea.h index 7236f75e9..50c28aaf2 100644 --- a/src/BlockArea.h +++ b/src/BlockArea.h @@ -294,7 +294,7 @@ public: NIBBLETYPE * GetBlockMetas (void) const { return m_BlockMetas; } // NOTE: one byte per block! NIBBLETYPE * GetBlockLight (void) const { return m_BlockLight; } // NOTE: one byte per block! NIBBLETYPE * GetBlockSkyLight(void) const { return m_BlockSkyLight; } // NOTE: one byte per block! - size_t GetBlockCount(void) const { return m_Size.x * m_Size.y * m_Size.z; } + size_t GetBlockCount(void) const { return (size_t)(m_Size.x * m_Size.y * m_Size.z); } int MakeIndex(int a_RelX, int a_RelY, int a_RelZ) const; protected: |