git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5281
d7cf8633-e32d-0410-b094-
e92efae38249
skinframe_t tempskinframe;
if (skinfile)
{
- for (i = 0;skinfile;skinfile = skinfile->next, i++, skin++)
+ // the skin += loadmodel->num_surfaces part of this is because data_textures on alias models is arranged as [numskins][numsurfaces]
+ for (i = 0;skinfile;skinfile = skinfile->next, i++, skin += loadmodel->num_surfaces)
{
memset(skin, 0, sizeof(*skin));
for (skinfileitem = skinfile->items;skinfileitem;skinfileitem = skinfileitem->next)