From b7fd77c403e656feba24d2cb3b6737e568bcb5d4 Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Thu, 18 Sep 2008 18:25:39 +0000 Subject: [PATCH] Blind, untested fix of Z_FreeTags(). git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3035 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/zone.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/common/zone.c b/engine/common/zone.c index 724397cd3..e5e6995d8 100644 --- a/engine/common/zone.c +++ b/engine/common/zone.c @@ -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; } } }