Fix volume check
This commit is contained in:
parent
0b26071663
commit
c1a277c46c
@ -288,7 +288,7 @@ inline void sort_min_max(Vector3i &a, Vector3i &b) {
|
||||
// even though dense volumes of that size will rarely be encountered in this module
|
||||
inline int64_t get_volume(const Vector3i &v) {
|
||||
#ifdef DEBUG_ENABLED
|
||||
ZN_ASSERT_RETURN_V(v.x >= 0 && v.y >= 0 && v.z > 0, 0);
|
||||
ZN_ASSERT_RETURN_V(v.x >= 0 && v.y >= 0 && v.z >= 0, 0);
|
||||
#endif
|
||||
return v.x * v.y * v.z;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user