mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
zone.c (Z_Realloc): Fixed the old_size value.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@108 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
b6fa239014
commit
e5df1b24be
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue