mirror of
https://github.com/godotengine/godot.git
synced 2025-03-19 23:53:32 +08:00
Fix for clang warning at distance_to
(cherry picked from commit bbd21c22030c85d098fa79ee69f78803a86c15ba)
This commit is contained in:
parent
a5ccaa919e
commit
814b610ed3
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user