Eliminate use of uninitialized variable.

This commit is contained in:
tamasmeszaros 2020-01-14 10:24:15 +01:00
parent ce49f0a294
commit e6244f7bdb

View File

@ -79,7 +79,7 @@ public:
ExPolygons overhangs; ExPolygons overhangs;
// Overhangs, where the surface must slope. // Overhangs, where the surface must slope.
ExPolygons overhangs_slopes; ExPolygons overhangs_slopes;
float overhangs_area; float overhangs_area = 0.f;
bool overlaps(const Structure &rhs) const { bool overlaps(const Structure &rhs) const {
return this->bbox.overlap(rhs.bbox) && (this->polygon->overlaps(*rhs.polygon) || rhs.polygon->overlaps(*this->polygon)); return this->bbox.overlap(rhs.bbox) && (this->polygon->overlaps(*rhs.polygon) || rhs.polygon->overlaps(*this->polygon));