瀏覽代碼

Fixed maybe uninitialized warning.

Бранимир Караџић 5 年之前
父節點
當前提交
d7abbecb38
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;