]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix skin loading on mdl (and probably md2) models by not setting numskins unless...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Aug 2003 13:04:04 +0000 (13:04 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Aug 2003 13:04:04 +0000 (13:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3361 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index d993fe8f880e0e0f787f70017c64891b22834191..393e7bb3baa8375e3fb7555625130a289ac8fc79 100644 (file)
@@ -1011,7 +1011,8 @@ tag_torso,
                loadmodel->data_overridetagnamesforskin = Mem_Alloc(loadmodel->mempool, i * sizeof(overridetagnameset_t));
                memcpy(loadmodel->data_overridetagnamesforskin, tagsets, i * sizeof(overridetagnameset_t));
        }
-       loadmodel->numskins = i;
+       if (i)
+               loadmodel->numskins = i;
        return first;
 }