From: Rudolf Polzer Date: Sun, 5 Jun 2011 17:33:29 +0000 (+0200) Subject: fix uninitialized use of an int when filtering a patch into a tree - possible perform... X-Git-Tag: xonotic-v0.5.0~12 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=2af64392f80ea19c416da54e346f0f70400710c8 fix uninitialized use of an int when filtering a patch into a tree - possible performance increase after this fix --- diff --git a/tools/quake3/q3map2/surface.c b/tools/quake3/q3map2/surface.c index ba400b08..b5dd724e 100644 --- a/tools/quake3/q3map2/surface.c +++ b/tools/quake3/q3map2/surface.c @@ -2147,7 +2147,7 @@ subdivides a patch into an approximate curve and filters it into the tree static int FilterPatchIntoTree( mapDrawSurface_t *ds, tree_t *tree ) { - int x, y, refs; + int x, y, refs = 0; for(y = 0; y + 2 < ds->patchHeight; y += 2) for(x = 0; x + 2 < ds->patchWidth; x += 2)