From 24d05cd8dcf7ab035754ad31633982a63864ccb2 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 26 Sep 2003 23:49:32 +0000 Subject: [PATCH] eliminate warnings --- panda/src/egg/eggPolygon.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/egg/eggPolygon.cxx b/panda/src/egg/eggPolygon.cxx index f3043846b3..7425f55ffa 100644 --- a/panda/src/egg/eggPolygon.cxx +++ b/panda/src/egg/eggPolygon.cxx @@ -74,11 +74,11 @@ calculate_normal(Normald &result, CoordinateSystem cs) const { centroid /= (double)num_vertices; LVector3d max_normal; - float max_normal_length; + float max_normal_length = 0.0; bool got_max_normal = false; LVector3d max_normal_mc; - float max_normal_length_mc; + float max_normal_length_mc = 0.0; bool got_max_normal_mc = false; for (index = 0; index < num_vertices; index++) {