Fix 'iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]' (#395)

This commit is contained in:
Anonymous Maarten 2024-07-16 19:11:22 +00:00 committed by GitHub
parent 6e6ce12eb7
commit e757db4227
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1285,7 +1285,7 @@ void GetTilingLimits(br_vector2* min, br_vector2* max) {
for (f = 0; f < gSelected_model->nfaces; f++) { for (f = 0; f < gSelected_model->nfaces; f++) {
if (faces[f].material == gSub_material) { if (faces[f].material == gSub_material) {
for (i = 0; i < 3; i++) { for (i = 0; i < 3; i++) {
for (j = 0; j < 3; j++) { for (j = 0; j < 2; j++) {
if (verts[faces[f].vertices[i]].map.v[j] < min->v[j]) { if (verts[faces[f].vertices[i]].map.v[j] < min->v[j]) {
min->v[j] = verts[faces[f].vertices[i]].map.v[j]; min->v[j] = verts[faces[f].vertices[i]].map.v[j];
} }