diff --git a/library/PolyVoxCore/include/Volume.h b/library/PolyVoxCore/include/Volume.h
index 0b0c8c12..498f5f53 100644
--- a/library/PolyVoxCore/include/Volume.h
+++ b/library/PolyVoxCore/include/Volume.h
@@ -147,7 +147,7 @@ namespace PolyVox
///Gets a voxel by x,y,z position
VoxelType getVoxelAt(uint16_t uXPos, uint16_t uYPos, uint16_t uZPos) const;
///Gets a voxel by 3D vector position
- VoxelType getVoxelAt(const Vector3DUint16& v3dPos, VoxelType tDefault = VoxelType()) const;
+ VoxelType getVoxelAt(const Vector3DUint16& v3dPos) const;
///Sets the value used for voxels which are outside the volume
void setBorderValue(const VoxelType& tBorder);
diff --git a/library/PolyVoxCore/include/Volume.inl b/library/PolyVoxCore/include/Volume.inl
index b220491a..8a1f37f5 100644
--- a/library/PolyVoxCore/include/Volume.inl
+++ b/library/PolyVoxCore/include/Volume.inl
@@ -236,7 +236,6 @@ namespace PolyVox
/// \param uXPos the \c x position of the voxel
/// \param uYPos the \c y position of the voxel
/// \param uZPos the \c z position of the voxel
- /// \param tDefault the voxel to be returned if the requested position is outside the volume
/// \return the voxel value
////////////////////////////////////////////////////////////////////////////////
template
@@ -271,13 +270,12 @@ namespace PolyVox
////////////////////////////////////////////////////////////////////////////////
/// \param v3dPos the 3D position of the voxel
- /// \param tDefault the voxel to be returned if the requested position is outside the volume
/// \return the voxel value
////////////////////////////////////////////////////////////////////////////////
template
- VoxelType Volume::getVoxelAt(const Vector3DUint16& v3dPos, VoxelType tDefault) const
+ VoxelType Volume::getVoxelAt(const Vector3DUint16& v3dPos) const
{
- return getVoxelAt(v3dPos.getX(), v3dPos.getY(), v3dPos.getZ(), tDefault);
+ return getVoxelAt(v3dPos.getX(), v3dPos.getY(), v3dPos.getZ());
}
#pragma endregion