diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-23 09:42:58 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-23 09:42:58 +0200 |
commit | 300ea8602ccfe7f69a994b8f2d81e0dff77ebc58 (patch) | |
tree | 18ce632abca5fc458a75e5ab49b21ab3a7f30271 /core | |
parent | ca88b23a3b13ca155fedde2644b8e4b783e93847 (diff) | |
parent | 91d252c69795cdfc53e71c553edcff665636ea16 (diff) |
Merge pull request #66260 from lawnjelly/fix_bvh_array_warning
Fix array-bounds warning in BVH
Diffstat (limited to 'core')
-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 } }; |