qbsp: use correct array indicies comparing texinfo

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2012-12-26 09:38:44 +10:30
parent 7ee8bc183b
commit 662a745202
1 changed files with 5 additions and 2 deletions

View File

@ -77,10 +77,13 @@ FindTexinfo(texinfo_t *t)
if (t->flags != tex->flags)
continue;
for (j = 0; j < 8; j++)
for (j = 0; j < 4; j++) {
if (t->vecs[0][j] != tex->vecs[0][j])
break;
if (j != 8)
if (t->vecs[1][j] != tex->vecs[1][j])
break;
}
if (j != 4)
continue;
return i;