From 662a7452022a354e4bd3f398409cc68b29efa8cf Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Wed, 26 Dec 2012 09:38:44 +1030 Subject: [PATCH] qbsp: use correct array indicies comparing texinfo Signed-off-by: Kevin Shanahan --- qbsp/map.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qbsp/map.c b/qbsp/map.c index 6ed00d57..de6afb46 100644 --- a/qbsp/map.c +++ b/qbsp/map.c @@ -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;