PhysWorld2D: Fix possible stack overflow when using wildcard collision handler

This commit is contained in:
Lynix
2019-06-16 15:40:24 +02:00
parent 6e7fd326db
commit c23248c564
2 changed files with 5 additions and 27 deletions

View File

@@ -89,7 +89,7 @@ cpAreaForSegment(cpVect a, cpVect b, cpFloat r)
}
cpFloat
cpMomentForPoly(cpFloat m, const int count, const cpVect *verts, cpVect offset, cpFloat r)
cpMomentForPoly(cpFloat m, int count, const cpVect *verts, cpVect offset, cpFloat r)
{
// TODO account for radius.
if(count == 2) return cpMomentForSegment(m, verts[0], verts[1], 0.0f);