Browse Source

Fixed maybe uninitialized warning.

Бранимир Караџић 5 years ago
parent
commit
d7abbecb38
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/common/bounds.cpp

+ 1 - 1
examples/common/bounds.cpp

@@ -2007,7 +2007,7 @@ bool overlap(const Triangle& _triangle, const Ty& _ty)
 	const LineSegment bc = LineSegment{_triangle.v1, _triangle.v2};
 	const LineSegment ca = LineSegment{_triangle.v2, _triangle.v0};
 
-	float ta0, tb0;
+	float ta0 = 0.0f, tb0 = 0.0f;
 	const bool i0 = intersect(ta0, tb0, ab, line);
 
 	float ta1, tb1;