diff --git a/library/PolyVoxCore/include/PolyVoxImpl/Block.inl b/library/PolyVoxCore/include/PolyVoxImpl/Block.inl index 5a241323..b17c0fe7 100644 --- a/library/PolyVoxCore/include/PolyVoxImpl/Block.inl +++ b/library/PolyVoxCore/include/PolyVoxImpl/Block.inl @@ -147,6 +147,12 @@ namespace PolyVox void Block::fill(VoxelType tValue) { memset(m_tData, (int)tValue, m_uSideLength * m_uSideLength * m_uSideLength * sizeof(VoxelType)); + //This next block fixes the compile error on Linux + /*const uint32_t uNoOfVoxels = m_uSideLength * m_uSideLength * m_uSideLength; + for(uint32_t ct = 0; ct < uNoOfVoxels; ++ct) + { + m_tData[ct] = tValue; + }*/ } template