Skip to content

Commit

Permalink
Fixed: Bug in DED_AddModel which would only initialize the shinyColor…
Browse files Browse the repository at this point in the history
… of the first four sub models, rather than all.
  • Loading branch information
danij committed Aug 23, 2008
1 parent 738b40d commit 9c996f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doomsday/engine/portable/src/def_data.c
Expand Up @@ -262,10 +262,10 @@ int DED_AddModel(ded_t *ded, char *spr)
md->interRange[1] = 1;
md->scale[0] = md->scale[1] = md->scale[2] = 1;
// Init submodels.
for(i = 0; i < 4; ++i)
for(i = 0; i < DED_MAX_SUB_MODELS; ++i)
{
md->sub[i].shinyColor[0] = md->sub[i].shinyColor[1] =
md->sub[i].shinyColor[2] = 1;
md->sub[i].shinyColor[CR] = md->sub[i].shinyColor[CG] =
md->sub[i].shinyColor[CB] = 1;
md->sub[i].shinyReact = 1.0f;
}
return md - ded->models;
Expand Down

0 comments on commit 9c996f9

Please sign in to comment.