Added null pointer check.
Added files to CMakeLists.txt
This commit is contained in:
		@@ -57,6 +57,7 @@ SET(CORE_INC_FILES
 | 
			
		||||
	include/PolyVoxCore/DefaultIsQuadNeeded.h
 | 
			
		||||
	include/PolyVoxCore/DefaultMarchingCubesController.h
 | 
			
		||||
	include/PolyVoxCore/Density.h
 | 
			
		||||
	include/PolyVoxCore/FilePager.h
 | 
			
		||||
	include/PolyVoxCore/GradientEstimators.h
 | 
			
		||||
	include/PolyVoxCore/GradientEstimators.inl
 | 
			
		||||
	include/PolyVoxCore/Interpolation.h
 | 
			
		||||
@@ -72,6 +73,7 @@ SET(CORE_INC_FILES
 | 
			
		||||
	include/PolyVoxCore/Material.h
 | 
			
		||||
	include/PolyVoxCore/MaterialDensityPair.h
 | 
			
		||||
	include/PolyVoxCore/MinizCompressor.h
 | 
			
		||||
	include/PolyVoxCore/Pager.h
 | 
			
		||||
	include/PolyVoxCore/PolyVoxForwardDeclarations.h
 | 
			
		||||
	include/PolyVoxCore/Picking.h
 | 
			
		||||
	include/PolyVoxCore/Picking.inl
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user