diff --git a/library/PolyVoxCore/include/PolyVoxCore/Picking.h b/library/PolyVoxCore/include/PolyVoxCore/Picking.h index 15360bb0..96322ac2 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Picking.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Picking.h @@ -33,6 +33,7 @@ namespace PolyVox */ struct PickResult { + PickResult() : didHit(false) {} bool didHit; ///< Did the picking operation hit anything Vector3DInt32 hitVoxel; ///< The location of the solid voxel it hit Vector3DInt32 previousVoxel; ///< The location of the voxel before the one it hit diff --git a/library/PolyVoxCore/include/PolyVoxCore/Picking.inl b/library/PolyVoxCore/include/PolyVoxCore/Picking.inl index 3bbbdaf3..bb23af2b 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Picking.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/Picking.inl @@ -42,7 +42,7 @@ namespace PolyVox public: RaycastPickingFunctor(const typename VolumeType::VoxelType& emptyVoxelExample) :m_emptyVoxelExample(emptyVoxelExample) - ,m_result{false} + ,m_result() { }