diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2016-04-06 18:24:56 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2016-04-06 18:24:56 +0200 |
commit | b3a2f32872391415c0da4e19403da14b4ad66cf8 (patch) | |
tree | 7d6a66204b3be2e268f779295bc3e8d876170e12 | |
parent | 60c0a689450403854a1adb55f8b1185c8d3f9313 (diff) |
Fix uninitialized value in CSG sampler.
-rw-r--r-- | src/physics.c | 2 |
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++) |