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:
Mark Olsen 2008-09-18 18:25:39 +00:00
parent c932cfbfab
commit b7fd77c403

View file

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