fix mistake with i supposed to be j

This commit is contained in:
Shpuld Shpuldson 2023-09-05 22:24:30 +03:00
parent 52ad56f8c2
commit cd7234877e

View file

@ -1947,9 +1947,9 @@ void *Mod_LoadAliasGroup (void * pin, maliasframedesc_t *frame)
for (int j = 0; j < pheader->numverts; j++) {
utrivertx_t * unsigned_vert = (utrivertx_t*)&(poseverts[posenum][j]);
poseverts[posenum][i].v[0] = unsigned_vert->v[0] - 128;
poseverts[posenum][i].v[1] = unsigned_vert->v[1] - 128;
poseverts[posenum][i].v[2] = unsigned_vert->v[2] - 128;
poseverts[posenum][j].v[0] = unsigned_vert->v[0] - 128;
poseverts[posenum][j].v[1] = unsigned_vert->v[1] - 128;
poseverts[posenum][j].v[2] = unsigned_vert->v[2] - 128;
}
posenum++;
@ -2539,6 +2539,7 @@ void Mod_LoadAliasModel (model_t *mod, void *buffer)
}
}
pheader->numposes = posenum;
mod->type = mod_alias;