mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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
|
{ // search for tag list and isolate it
|
||||||
zone_t *z;
|
zone_t *z;
|
||||||
z = zone_head;
|
z = zone_head;
|
||||||
while (z->next != NULL && z->next->mh.tag != tag)
|
while (z->pvdn != NULL && z->pvdn->mh.tag != tag)
|
||||||
z = z->next;
|
z = z->pvdn;
|
||||||
|
|
||||||
if (z->next == NULL)
|
if (z->next == NULL)
|
||||||
taglist = NULL;
|
taglist = NULL;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
taglist = z->next;
|
taglist = z->pvdn;
|
||||||
z->next = z->next->next;
|
z->pvdn = z->pvdn->pvdn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue