]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
workaround/fix for bounds checking warning
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 7 Jan 2001 16:56:48 +0000 (16:56 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 7 Jan 2001 16:56:48 +0000 (16:56 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@126 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index d86b498e54e333940007fc42b9ac791e529acfb0..db1e398c8f1be40e2b5f5420d2efa2a66f79210c 100644 (file)
@@ -520,7 +520,7 @@ void Mod_LoadTexinfo (lump_t *l)
 {
        texinfo_t *in;
        mtexinfo_t *out;
-       int     i, j, count;
+       int     i, j, k, count;
        int             miptex;
        float   len1, len2;
 
@@ -535,8 +535,9 @@ void Mod_LoadTexinfo (lump_t *l)
 
        for ( i=0 ; i<count ; i++, in++, out++)
        {
-               for (j=0 ; j<8 ; j++)
-                       out->vecs[0][j] = LittleFloat (in->vecs[0][j]);
+               for (k=0 ; k<2 ; k++)
+                       for (j=0 ; j<4 ; j++)
+                               out->vecs[k][j] = LittleFloat (in->vecs[k][j]);
                len1 = Length (out->vecs[0]);
                len2 = Length (out->vecs[1]);
                len1 = (len1 + len2)/2;