浏览代码

Merge pull request #66544 from lawnjelly/bvh_tree_sibling_warning

Fix false flag compiler warning in bvh tree
Rémi Verschelde 3 年之前
父节点
当前提交
d9b251c95c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/math/bvh_tree.h

+ 1 - 1
core/math/bvh_tree.h

@@ -235,7 +235,7 @@ private:
 
 		// no need to keep back references for children at the moment
 
-		uint32_t sibling_id; // always a node id, as tnode is never a leaf
+		uint32_t sibling_id = 0; // always a node id, as tnode is never a leaf
 		bool sibling_present = false;
 
 		// if there are more children, or this is the root node, don't try and delete