diff --git a/Quake/zone.c b/Quake/zone.c index a6610a56..2fb93724 100644 --- a/Quake/zone.c +++ b/Quake/zone.c @@ -147,6 +147,7 @@ void *Z_Realloc(void *ptr, int size) Sys_Error ("Z_Realloc: realloced a freed pointer"); old_size = block->size; + old_size -= (4 + (int)sizeof(memblock_t)); /* see Z_TagMalloc() */ old_ptr = ptr; Z_Free (ptr);