changes for materials to treat them as shorts not int/chars (since they are stored...
[blender.git] / source / blender / blenloader / intern / readfile.c
index a5484d218d2374a848e97561730dd1d904983177..497ac415ebb5fdbf66ca9850573c21290c895cbf 100644 (file)
@@ -6362,7 +6362,7 @@ static void alphasort_version_246(FileData *fd, Library *lib, Mesh *me)
        /* if we do, set alpha sort if the game engine did it before */
        for(a=0, mf=me->mface; a<me->totface; a++, mf++) {
                if(mf->mat_nr < me->totcol) {
-                       ma= newlibadr(fd, lib, me->mat[(int)mf->mat_nr]);
+                       ma= newlibadr(fd, lib, me->mat[mf->mat_nr]);
                        texalpha = 0;
 
                        /* we can't read from this if it comes from a library,