Skip to content

Commit 0a50bcf

Browse files
committed
fixed implicit fall through(s) in BspTree.cpp
1 parent 2b896c0 commit 0a50bcf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/engine/BspTree.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,14 @@ std::vector<NodeIndex> BspTree::findLeafOf(const Utils::BBox3D& bbox)
9090
case Utils::PLANE_INFRONT: // Front
9191
if (m_Nodes[n].front != INVALID_NODE)
9292
return rec(bbox, m_Nodes[n].front);
93+
else
94+
return {};
9395

9496
case Utils::PLANE_BEHIND: // Back
9597
if (m_Nodes[n].back != INVALID_NODE)
9698
return rec(bbox, m_Nodes[n].back);
99+
else
100+
return {};
97101

98102
case Utils::PLANE_SPANNING: // Split
99103
{
@@ -108,8 +112,6 @@ std::vector<NodeIndex> BspTree::findLeafOf(const Utils::BBox3D& bbox)
108112
default:
109113
return {};
110114
}
111-
112-
return {};
113115
};
114116

115117
ddSetTransform(nullptr);

0 commit comments

Comments
 (0)