diff --git a/src/engine/buffers/vector/HostVector.hpp b/src/engine/buffers/vector/HostVector.hpp index 39db17f..e5f1ce8 100644 --- a/src/engine/buffers/vector/HostVector.hpp +++ b/src/engine/buffers/vector/HostVector.hpp @@ -65,6 +65,9 @@ namespace fgl::engine assert( start_idx < this->m_count && "BufferSuballocationVector::flushRange start_idx index out of bounds" ); assert( end_idx <= this->m_count && "BufferSuballocationVector::flushRange end_idx index out of bounds" ); + assert( + end_idx - start_idx > 0 + && "BufferSuballocationVector::flushRange: end_idx - start_idx must be higher then 0" ); assert( start_idx < end_idx && "BufferSuballocationVector::flushRange start_idx index must be less than end_idx index" );