Merge pull request #17704 from marcelofg55/clang_warn_fix

Fix for clang warning at distance_to
This commit is contained in:
Rémi Verschelde 2018-03-23 08:44:40 +01:00 committed by GitHub
commit f672fd7686
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {