1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-07-01 18:03:46 +00:00

CGlass indices fix

This commit is contained in:
majestic 2020-11-09 06:18:49 -08:00
parent 51e7f44433
commit cf6a9a8341

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;
} }