Merge pull request #811 from majesticCoding/miami

CGlass indices fix
This commit is contained in:
aap 2020-11-10 15:28:52 +01:00 committed by GitHub
commit e87cd7077e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -967,7 +967,7 @@ CGlass::BreakGlassPhysically(CVector pos, float radius)
for ( int32 j = 0; j < col->numTriangles; j++ ) for ( int32 j = 0; j < col->numTriangles; j++ )
{ {
if ( CCollision::TestSphereTriangle(sphere, if ( CCollision::TestSphereTriangle(sphere,
col->vertices, col->triangles[i], col->trianglePlanes[i]) ) col->vertices, col->triangles[j], col->trianglePlanes[j]) )
{ {
hit = true; hit = true;
} }