Added null pointer check.

Added files to CMakeLists.txt
This commit is contained in:
David Williams
2013-06-22 07:24:19 +02:00
parent a14de4a72e
commit 20db75fb75
2 changed files with 3 additions and 1 deletions

View File

@ -533,7 +533,7 @@ namespace PolyVox
template <typename VoxelType>
void LargeVolume<VoxelType>::eraseBlock(typename std::map<Vector3DInt32, LoadedBlock, BlockPositionCompare>::iterator itBlock) const
{
//if(m_funcDataOverflowHandler)
if(m_pPager)
{
Vector3DInt32 v3dPos = itBlock->first;
Vector3DInt32 v3dLower(v3dPos.getX() << m_uBlockSideLengthPower, v3dPos.getY() << m_uBlockSideLengthPower, v3dPos.getZ() << m_uBlockSideLengthPower);