mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
Fix comparing unsigned values to < 0 in gl2
This commit is contained in:
parent
93be2655f8
commit
a53e7c3074
1 changed files with 2 additions and 2 deletions
|
@ -746,7 +746,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");
|
||||
}
|
||||
|
@ -990,7 +990,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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue