diff options
author | madmaxoft <github@xoft.cz> | 2014-05-01 23:20:00 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-01 23:20:00 +0200 |
commit | 6bdd3ee35e85768634e41af86a99bbdd933ffb3a (patch) | |
tree | 5481ae6b270a197f4a57341dfc42fb98343022b0 /src/BlockArea.h | |
parent | Merge branch 'master' into SslWebAdmin (diff) | |
parent | Fixed a warning in Noise. (diff) | |
download | cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.gz cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.bz2 cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.lz cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.xz cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.zst cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.zip |
Diffstat (limited to 'src/BlockArea.h')
-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 4c4dfb8ff..6dba0f12e 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: |