Changes the assert to match the comment above.
This assert was failing in some cases while running darkplaces.
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
start_offset = elements[idx].src_offset;
/* maximum vertex size is 256 bytes */
- assert(element_size != 0 && end_offset <= 256);
+ assert(element_size != 0 && (end_offset - start_offset) < 256);
/* check whether next element is consecutive to this one */
nonconsecutive = (idx == (num_elements - 1)) ||