summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2016-04-06 18:24:56 +0200
committerPaweł Redman <pawel.redman@gmail.com>2016-04-06 18:24:56 +0200
commitb3a2f32872391415c0da4e19403da14b4ad66cf8 (patch)
tree7d6a66204b3be2e268f779295bc3e8d876170e12 /src
parent60c0a689450403854a1adb55f8b1185c8d3f9313 (diff)
Fix uninitialized value in CSG sampler.
Diffstat (limited to 'src')
-rw-r--r--src/physics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/physics.c b/src/physics.c
index f8c46fa..a50ba1f 100644
--- a/src/physics.c
+++ b/src/physics.c
@@ -89,7 +89,7 @@ static float phy_sim_csg_subsample(phy_csg_step *stack, float *x)
static float phy_sim_csg_sample(phy_csg_step *stack, size_t *x)
{
size_t dx, dy, dz;
- float total;
+ float total = 0.0f;
for (dz = 0; dz < 2; dz++)
for (dy = 0; dy < 2; dy++)