zone.c (Z_Realloc): Fixed the old_size value.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@108 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-03-09 12:03:08 +00:00
parent 12dfc720c4
commit f252dba2f8

View file

@ -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);