diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2019-12-10 08:25:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-10 08:25:31 +0100 |
| commit | 2845e6a21a9a1b7c8bf64dc49575213141a68832 (patch) | |
| tree | b4f82b8b4b733aa37dd877a0867a441d67a68d15 /core/math/bsp_tree.cpp | |
| parent | 16fc023d4487c2a3f26b5bdd3827628de2cd0ba2 (diff) | |
| parent | ed1c4bc77db88fa0f8f599ca2d3c4b533a94a654 (diff) | |
| download | redot-engine-2845e6a21a9a1b7c8bf64dc49575213141a68832.tar.gz | |
Merge pull request #34040 from qarmin/unused_variable_more_precise_numbers
Removed unused variables, add some constants numbers
Diffstat (limited to 'core/math/bsp_tree.cpp')
| -rw-r--r-- | core/math/bsp_tree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/bsp_tree.cpp b/core/math/bsp_tree.cpp index ece293d036..f1d4505c35 100644 --- a/core/math/bsp_tree.cpp +++ b/core/math/bsp_tree.cpp @@ -192,14 +192,14 @@ int BSP_Tree::get_points_inside(const Vector3 *p_points, int p_point_count) cons #ifdef DEBUG_ENABLED int plane_count = planes.size(); uint16_t plane = nodesptr[idx].plane; - ERR_FAIL_UNSIGNED_INDEX_V(plane, plane_count, false); + ERR_FAIL_UNSIGNED_INDEX_V(plane, plane_count, 0); #endif idx = planesptr[nodesptr[idx].plane].is_point_over(point) ? nodes[idx].over : nodes[idx].under; #ifdef DEBUG_ENABLED - ERR_FAIL_COND_V(idx < MAX_NODES && idx >= node_count, false); + ERR_FAIL_COND_V(idx < MAX_NODES && idx >= node_count, 0); #endif } |
