diff options
| author | Ray <[email protected]> | 2022-09-10 23:56:52 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-09-10 23:56:52 +0200 |
| commit | 853c66baedb342968c818e62422eb043ba4fb0c7 (patch) | |
| tree | da3f010ec6d75a3d82217abfcc0be6aa5ca6845a /src | |
| parent | cf76d234769be4773230fc1674acee837525ad40 (diff) | |
| download | raylib-853c66baedb342968c818e62422eb043ba4fb0c7.tar.gz raylib-853c66baedb342968c818e62422eb043ba4fb0c7.zip | |
REVIEWED: `CheckCollisionPointPoly()`
Diffstat (limited to 'src')
| -rw-r--r-- | src/rshapes.c | 2 |
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]; |
