summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2022-09-10 23:56:52 +0200
committerRay <[email protected]>2022-09-10 23:56:52 +0200
commit853c66baedb342968c818e62422eb043ba4fb0c7 (patch)
treeda3f010ec6d75a3d82217abfcc0be6aa5ca6845a /src
parentcf76d234769be4773230fc1674acee837525ad40 (diff)
downloadraylib-853c66baedb342968c818e62422eb043ba4fb0c7.tar.gz
raylib-853c66baedb342968c818e62422eb043ba4fb0c7.zip
REVIEWED: `CheckCollisionPointPoly()`
Diffstat (limited to 'src')
-rw-r--r--src/rshapes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rshapes.c b/src/rshapes.c
index 12ed247f..0a016eab 100644
--- a/src/rshapes.c
+++ b/src/rshapes.c
@@ -1555,7 +1555,7 @@ bool CheckCollisionPointPoly(Vector2 point, Vector2 *points, int pointCount)
if (pointCount > 2)
{
- for (int i = 0; i < pointCount; i++)
+ for (int i = 0; i < pointCount - 1; i++)
{
Vector2 vc = points[i];
Vector2 vn = points[i + 1];