fix spr2defaults pretty sure

This commit is contained in:
kaldrum1 2024-05-25 20:49:29 -07:00
parent 92fc592966
commit b7fdcdf2b2

View file

@ -1093,13 +1093,13 @@ static modelspr2frames_t *HWR_GetModelSprite2Frames(md2_t *md2, UINT16 spr2)
return &md2->model->superspr2frames[spr2]; return &md2->model->superspr2frames[spr2];
} }
if (md2->model->spr2frames) if (md2->model->spr2frames[spr2].numframes)
return &md2->model->spr2frames[spr2]; return &md2->model->spr2frames[spr2];
return NULL; return NULL;
} }
static UINT16 *HWR_GetModelSprite2Num(md2_t *md2, skin_t *skin, UINT16 spr2, player_t *player) static UINT16 HWR_GetModelSprite2Num(md2_t *md2, skin_t *skin, UINT16 spr2, player_t *player)
{ {
UINT16 super = 0; UINT16 super = 0;
UINT8 i = 0; UINT8 i = 0;