summaryrefslogtreecommitdiff
path: root/servers/physics/collision_solver_sw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'servers/physics/collision_solver_sw.cpp')
-rw-r--r--servers/physics/collision_solver_sw.cpp2
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++) {