You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix for clang warning at distance_to
This commit is contained in:
@@ -303,7 +303,7 @@ struct Rect2 {
|
|||||||
|
|
||||||
inline real_t distance_to(const Vector2 &p_point) const {
|
inline real_t distance_to(const Vector2 &p_point) const {
|
||||||
|
|
||||||
real_t dist;
|
real_t dist = 0.0;
|
||||||
bool inside = true;
|
bool inside = true;
|
||||||
|
|
||||||
if (p_point.x < position.x) {
|
if (p_point.x < position.x) {
|
||||||
|
|||||||
Reference in New Issue
Block a user