]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix an error and a warning with my last commit
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 29 Jun 2008 21:27:56 +0000 (21:27 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 29 Jun 2008 21:27:56 +0000 (21:27 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8382 d7cf8633-e32d-0410-b094-e92efae38249

model_alias.c

index e84d1873b8941ebddf3ede87b15668e0fbf316c9..8cf13d0c23f2957e10ec9f5e062f7c9d9f3ff05f 100644 (file)
@@ -2142,7 +2142,7 @@ void Mod_DARKPLACESMODEL_Load(dp_model_t *mod, void *buffer, void *bufferend)
 #define PSKQUATNEGATIONS
 void Mod_PSKMODEL_Load(dp_model_t *mod, void *buffer, void *bufferend)
 {
-       int i, j, index, version, recordsize, numrecords, meshvertices, meshtriangles;
+       int i, j, index, version, recordsize, numrecords, meshvertices, meshtriangles, size;
        int numpnts, numvtxw, numfaces, nummatts, numbones, numrawweights, numanimbones, numanims, numanimkeys;
        fs_offset_t filesize;
        pskpnts_t *pnts;
@@ -2573,7 +2573,7 @@ void Mod_PSKMODEL_Load(dp_model_t *mod, void *buffer, void *bufferend)
                        loadmodel->surfmesh.data_element3s[i] = loadmodel->surfmesh.data_element3i[i];
        }
        if (data != (unsigned char *)loadmodel->data_surfaces + size)
-               Sys_Error("%s: combined alloc has wrong size! (%i bytes should be %i)\n", (int)size, (int)(data - (unsigned char *)loadmodel->data_surfaces));
+               Sys_Error("%s: combined alloc has wrong size! (%i bytes should be %i)\n", loadmodel->name, (int)size, (int)(data - (unsigned char *)loadmodel->data_surfaces));
 
        for (i = 0;i < loadmodel->numskins;i++)
        {