summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/renderergl2/tr_bsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderergl2/tr_bsp.c b/src/renderergl2/tr_bsp.c
index 797ac354..26d7fa50 100644
--- a/src/renderergl2/tr_bsp.c
+++ b/src/renderergl2/tr_bsp.c
@@ -747,7 +747,7 @@ static void ParseFace( dsurface_t *ds, drawVert_t *verts, float *hdrVertColors,
{
tri[j] = LittleLong(indexes[i + j]);
- if(tri[j] < 0 || tri[j] >= numVerts)
+ if(tri[j] >= numVerts)
{
ri.Error(ERR_DROP, "Bad index in face surface");
}
@@ -991,7 +991,7 @@ static void ParseTriSurf( dsurface_t *ds, drawVert_t *verts, float *hdrVertColor
{
tri[j] = LittleLong(indexes[i + j]);
- if(tri[j] < 0 || tri[j] >= numVerts)
+ if(tri[j] >= numVerts)
{
ri.Error(ERR_DROP, "Bad index in face surface");
}