diff options
| author | Marcelo Fernandez | 2018-03-22 13:26:04 -0300 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-03-29 00:15:24 +0200 |
| commit | 814b610ed3884d7879b60aadd09d66b3e3102357 (patch) | |
| tree | e6d4a4adde596a00e387e535d9b8fca25f2e8d11 | |
| parent | a5ccaa919e897a4da8bc9e75ff82ad7676d0c605 (diff) | |
| download | godot-814b610ed3884d7879b60aadd09d66b3e3102357.tar.gz godot-814b610ed3884d7879b60aadd09d66b3e3102357.tar.zst godot-814b610ed3884d7879b60aadd09d66b3e3102357.zip | |
Fix for clang warning at distance_to
(cherry picked from commit bbd21c22030c85d098fa79ee69f78803a86c15ba)
| -rw-r--r-- | core/math/math_2d.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/math_2d.h b/core/math/math_2d.h index 8928349a4..cdfd90747 100644 --- a/core/math/math_2d.h +++ b/core/math/math_2d.h @@ -304,7 +304,7 @@ struct Rect2 { inline real_t distance_to(const Vector2 &p_point) const { - real_t dist; + real_t dist = 0.0; bool inside = true; if (p_point.x < position.x) { |
