Fix array-bounds warning in BVH
Provides a workaround to prevent tripping a compiler warning.
This commit is contained in:
parent
8e14f9ba21
commit
91d252c697
1 changed files with 4 additions and 0 deletions
|
@ -100,7 +100,11 @@ public:
|
||||||
num_items++;
|
num_items++;
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
#ifdef DEV_ENABLED
|
||||||
return -1;
|
return -1;
|
||||||
|
#else
|
||||||
|
ERR_FAIL_V_MSG(0, "BVH request_item error.");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue