diff options
| author | Rémi Verschelde | 2018-03-23 08:44:40 +0100 |
|---|---|---|
| committer | GitHub | 2018-03-23 08:44:40 +0100 |
| commit | f672fd768623f2a819593080eab16a0cbbe4f05c (patch) | |
| tree | 7bbf3d18854d736ccd2ee61aea6b99b8c2ff429f /core/math/math_2d.h | |
| parent | cc34406b5d48c8c09d51c0c8fe6d94b91303745f (diff) | |
| parent | bbd21c22030c85d098fa79ee69f78803a86c15ba (diff) | |
| download | godot-f672fd768623f2a819593080eab16a0cbbe4f05c.tar.gz godot-f672fd768623f2a819593080eab16a0cbbe4f05c.tar.zst godot-f672fd768623f2a819593080eab16a0cbbe4f05c.zip | |
Merge pull request #17704 from marcelofg55/clang_warn_fix
Fix for clang warning at distance_to
Diffstat (limited to 'core/math/math_2d.h')
| -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 02d921b67..e7188da85 100644 --- a/core/math/math_2d.h +++ b/core/math/math_2d.h @@ -303,7 +303,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) { |
