Make m_uChunkSideLengthMinusOne const
This commit is contained in:
parent
c562341db0
commit
32c30471a6
@ -250,7 +250,7 @@ namespace PolyVox
|
||||
uint16_t m_uXPosInChunk;
|
||||
uint16_t m_uYPosInChunk;
|
||||
uint16_t m_uZPosInChunk;
|
||||
uint16_t m_uChunkSideLengthMinusOne;
|
||||
const uint16_t m_uChunkSideLengthMinusOne;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -47,9 +47,8 @@ namespace PolyVox
|
||||
|
||||
template <typename VoxelType>
|
||||
PagedVolume<VoxelType>::Sampler::Sampler(PagedVolume<VoxelType>* volume)
|
||||
:BaseVolume<VoxelType>::template Sampler< PagedVolume<VoxelType> >(volume)
|
||||
:BaseVolume<VoxelType>::template Sampler< PagedVolume<VoxelType> >(volume), m_uChunkSideLengthMinusOne(volume->m_uChunkSideLength - 1)
|
||||
{
|
||||
this->m_uChunkSideLengthMinusOne = this->mVolume->m_uChunkSideLength - 1;
|
||||
}
|
||||
|
||||
template <typename VoxelType>
|
||||
|
Loading…
x
Reference in New Issue
Block a user