summaryrefslogtreecommitdiff
path: root/core/math
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-04-04 22:00:16 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-04-04 22:00:16 +0200
commit8460d0678c28816f6f206f40b71de2510fab1ffc (patch)
tree57970414bfd1d51aac751f2c9ec6051ec0fb629e /core/math
parentc2c11fc063e723c41579e6307e40fd16ac5334c4 (diff)
Small fixes to static analyzer bugs
Diffstat (limited to 'core/math')
-rw-r--r--core/math/rect2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/rect2.h b/core/math/rect2.h
index 901d372132..a10214fb99 100644
--- a/core/math/rect2.h
+++ b/core/math/rect2.h
@@ -67,7 +67,7 @@ struct Rect2 {
if (p_point.x < position.x) {
real_t d = position.x - p_point.x;
- dist = inside ? d : MIN(dist, d);
+ dist = d;
inside = false;
}
if (p_point.y < position.y) {