]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.c
migrated a large number of #define MAX values to quakedef.h and added a
[xonotic/darkplaces.git] / model_shared.c
index 6ea5a859889fd9dd68b48a6686907b446259baee..13af108b2b30129a1051c9e7092ef407f4c0b572 100644 (file)
@@ -2266,7 +2266,7 @@ tag_weapon,
 tag_torso,
 */
        memset(word, 0, sizeof(word));
-       for (i = 0;i < MAX_SKINS && (data = text = (char *)FS_LoadFile(va("%s_%i.skin", loadmodel->name, i), tempmempool, true, NULL));i++)
+       for (i = 0;i < 256 && (data = text = (char *)FS_LoadFile(va("%s_%i.skin", loadmodel->name, i), tempmempool, true, NULL));i++)
        {
                // If it's the first file we parse
                if (skinfile == NULL)