diff options
author | lawnjelly <lawnjelly@gmail.com> | 2022-09-22 16:06:25 +0100 |
---|---|---|
committer | lawnjelly <lawnjelly@gmail.com> | 2022-09-22 16:06:25 +0100 |
commit | 91d252c69795cdfc53e71c553edcff665636ea16 (patch) | |
tree | 7da9378ff25500ae0428f906b94ef8c2fe6ca392 /core/math | |
parent | 8e14f9ba21725a9445f3979742f2fc87c8a7b463 (diff) |
Fix array-bounds warning in BVH
Provides a workaround to prevent tripping a compiler warning.
Diffstat (limited to 'core/math')
-rw-r--r-- | core/math/bvh_structs.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/math/bvh_structs.inc b/core/math/bvh_structs.inc index 58c8f0479a..06f6e5d05d 100644 --- a/core/math/bvh_structs.inc +++ b/core/math/bvh_structs.inc @@ -100,7 +100,11 @@ public: num_items++; return id; } +#ifdef DEV_ENABLED return -1; +#else + ERR_FAIL_V_MSG(0, "BVH request_item error."); +#endif } }; |