You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-25 15:37:42 +00:00
Fix use of unitialized variables
The second in my quest to make Godot 3.x compile with -Werror on GCC7
This commit is contained in:
@@ -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++) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user