diff --git a/core/math/bvh_structs.inc b/core/math/bvh_structs.inc index b0d9ae361..7b5cc2c35 100644 --- a/core/math/bvh_structs.inc +++ b/core/math/bvh_structs.inc @@ -88,7 +88,11 @@ public: num_items++; return id; } +#ifdef DEV_ENABLED return -1; +#else + ERR_FAIL_V_MSG(0, "BVH request_item error."); +#endif } };