From d2f776519e202b398f617f733e69a57e9a032d0b Mon Sep 17 00:00:00 2001 From: Plagman Date: Thu, 31 Aug 2006 00:22:24 +0000 Subject: [PATCH] git-svn-id: https://svn.eduke32.com/eduke32@284 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/polymer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/polymer/build/src/polymer.c b/polymer/build/src/polymer.c index 31a3fdd92..18df60d85 100644 --- a/polymer/build/src/polymer.c +++ b/polymer/build/src/polymer.c @@ -172,6 +172,7 @@ int polymer_buildfloor(short sectnum) gluTessProperty(prtess, GLU_TESS_WINDING_RULE, GLU_TESS_WINDING_POSITIVE); tempverticescount = 0; + tempvertices = NULL; gluTessBeginPolygon(prtess, NULL); gluTessBeginContour(prtess); @@ -195,6 +196,7 @@ int polymer_buildfloor(short sectnum) if (tempverticescount) { free(tempvertices); + tempvertices = NULL; tempverticescount = 0; }