Browse Source

Re-enabled bounds check for primitive buffer. Fixes crashing on larger maps.

tess_experiment
Nico de Poel 3 years ago
parent
commit
d7a4957452
  1. 2
      memory.c

2
memory.c

@ -29,10 +29,8 @@ void mem_prim_reset(int db)
void *mem_prim(size_t size)
{
#if _DEBUG
if (nextpri + size > primbuff_bounds)
return NULL; // TODO: report error
#endif
void *prim = nextpri;
nextpri += size;

Loading…
Cancel
Save