Blind, untested fix of Z_FreeTags().
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3035 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
c932cfbfab
commit
b7fd77c403
1 changed files with 4 additions and 4 deletions
|
@ -275,15 +275,15 @@ void VARGS Z_FreeTags(int tag)
|
|||
{ // search for tag list and isolate it
|
||||
zone_t *z;
|
||||
z = zone_head;
|
||||
while (z->next != NULL && z->next->mh.tag != tag)
|
||||
z = z->next;
|
||||
while (z->pvdn != NULL && z->pvdn->mh.tag != tag)
|
||||
z = z->pvdn;
|
||||
|
||||
if (z->next == NULL)
|
||||
taglist = NULL;
|
||||
else
|
||||
{
|
||||
taglist = z->next;
|
||||
z->next = z->next->next;
|
||||
taglist = z->pvdn;
|
||||
z->pvdn = z->pvdn->pvdn;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue