Browse Source

zone; revert removing clean check

pull/2/head
mittorn 5 years ago
parent
commit
5145b1956c
  1. 2
      engine/common/zone.c

2
engine/common/zone.c

@ -83,7 +83,7 @@ void *_Mem_Alloc( byte *poolptr, size_t size, qboolean clear, const char *filena @@ -83,7 +83,7 @@ void *_Mem_Alloc( byte *poolptr, size_t size, qboolean clear, const char *filena
mem->prev = NULL;
pool->chain = mem;
if( mem->next ) mem->next->prev = mem;
//if( clear )
if( clear )
memset((void *)((byte *)mem + sizeof( memheader_t )), 0, mem->size );
return (void *)((byte *)mem + sizeof( memheader_t ));

Loading…
Cancel
Save