summaryrefslogtreecommitdiffstats
path: root/servers/physics_3d/godot_body_pair_3d.cpp
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal@protonmail.com>2022-10-01 21:09:22 +0200
committerRafał Mikrut <mikrutrafal@protonmail.com>2022-10-01 21:09:22 +0200
commit2233624152a3b041daeab8b0fd88a2061b7b8565 (patch)
tree27b6bc31c38e0629a23ea6142f54724045aa2bc5 /servers/physics_3d/godot_body_pair_3d.cpp
parent24115beb3c69e648b1d48f969785b9b0729e1be8 (diff)
downloadredot-engine-2233624152a3b041daeab8b0fd88a2061b7b8565.tar.gz
Remove usage of unitialized variables
Diffstat (limited to 'servers/physics_3d/godot_body_pair_3d.cpp')
-rw-r--r--servers/physics_3d/godot_body_pair_3d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_3d/godot_body_pair_3d.cpp b/servers/physics_3d/godot_body_pair_3d.cpp
index eebbe0196d..7e6cc6f834 100644
--- a/servers/physics_3d/godot_body_pair_3d.cpp
+++ b/servers/physics_3d/godot_body_pair_3d.cpp
@@ -170,7 +170,7 @@ bool GodotBodyPair3D::_test_ccd(real_t p_step, GodotBody3D *p_A, int p_shape_A,
Vector3 mnormal = motion / mlen;
- real_t min, max;
+ real_t min = 0.0, max = 0.0;
p_A->get_shape(p_shape_A)->project_range(mnormal, p_xform_A, min, max);
// Did it move enough in this direction to even attempt raycast?