Fix a bug with md2 loading.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4484 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-09-29 15:04:49 +00:00
parent 759c436d09
commit f9685cde37

View file

@ -3342,7 +3342,7 @@ qboolean Mod_LoadQ2Model (model_t *mod, void *buffer)
#ifndef SERVERONLY
size += 3*sizeof(vec3_t)*numverts;
#endif
pose = (galiaspose_t *)ZG_Malloc(&loadmodel->memgroup, sizeof(galiaspose_t) + sizeof(vecV_t)*numverts);
pose = (galiaspose_t *)ZG_Malloc(&loadmodel->memgroup, size);
poutframe->poseofs = pose;
poutframe->numposes = 1;
galias->groups++;