diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-09-02 10:40:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-02 10:40:12 +0200 |
commit | 437fb12e1aa3135dc7fa336bd0a53036be649ce8 (patch) | |
tree | df8288d031d4fdf06de7f8f717cb2eafd1c2854f /servers/physics/collision_solver_sw.cpp | |
parent | ded74dedefcb03fee1079d33f9688c2e401ea00e (diff) | |
parent | 9c63ab99f0a505b0f60079bb30cc453b4415fddc (diff) |
Merge pull request #10877 from hpvb/fix-unitialized-variables
Fix use of unitialized variables
Diffstat (limited to 'servers/physics/collision_solver_sw.cpp')
-rw-r--r-- | servers/physics/collision_solver_sw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics/collision_solver_sw.cpp b/servers/physics/collision_solver_sw.cpp index c7f66cb7fc..7bef208237 100644 --- a/servers/physics/collision_solver_sw.cpp +++ b/servers/physics/collision_solver_sw.cpp @@ -271,7 +271,7 @@ bool CollisionSolverSW::solve_distance_plane(const ShapeSW *p_shape_A, const Tra bool collided = false; Vector3 closest; - real_t closest_d; + real_t closest_d = 0; for (int i = 0; i < support_count; i++) { |