From aa80a45ed290270243ae487795670b14dfe9cd92 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 22 Sep 2004 20:44:55 +0000 Subject: [PATCH] fix gcc compiler warning --- panda/src/pgraph/polylightEffect.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/pgraph/polylightEffect.cxx b/panda/src/pgraph/polylightEffect.cxx index 19f5d65a8f..d62fd235f7 100755 --- a/panda/src/pgraph/polylightEffect.cxx +++ b/panda/src/pgraph/polylightEffect.cxx @@ -136,7 +136,7 @@ do_poly_light(const SceneSetup *scene, const CullTraverserData *data, const Tran float min_dist; // hold the dist from light that avatar is closer to int num_lights = 0; // Keep track of number of lights for division float light_scale; // Variable to calculate attenuation - float weight_scale; // Variable to compensate snap of color when you walk inside the light volume + float weight_scale = 1.0f; // Variable to compensate snap of color when you walk inside the light volume float Rcollect, Gcollect, Bcollect; PStatTimer timer(_cull_pcollector);