Initialize POD types where previously relied on constructors

This commit is contained in:
2018-03-12 17:01:33 -07:00
parent 7e9f7a462b
commit d3365896c1
3 changed files with 11 additions and 0 deletions

View File

@@ -258,7 +258,9 @@ bool AABB::intersectsRay(const Vector3 &v1, const Vector3 &dir) const
bool inside = true;
Vector3 maxT;
maxT.init();
Vector3 coord;
coord.init();
double candidatePlane[3];
// Find candidate planes; this loop can be avoided if rays cast all from the eye(assume perpsective view)