Skip to content

Commit

Permalink
Definitions: Fixed OBOE interpreting supplanted material anims
Browse files Browse the repository at this point in the history
A typo in the definition parser's handling of the case where a
texture animation defined by the default game ANIMDEFS, replaced
by an add-on, resulted in a crash.
  • Loading branch information
danij-deng committed Mar 27, 2013
1 parent 11fc79e commit 64ed082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/client/src/def_read.cpp
Expand Up @@ -1273,9 +1273,9 @@ static int DED_ReadData(ded_t* ded, const char* buffer, const char* _sourceFile)
// Need to allocate a new stage?
if(layerStage >= mat->layers[layer].stageCount.num)
{
layerStage = DED_AddMaterialLayerStage(&mat->layers[layer]);
DED_AddMaterialLayerStage(&mat->layers[layer]);

if(mat->autoGenerated && layerStage > 1)
if(mat->autoGenerated && layerStage > 0)
{
// When adding a new stage to an autogenerated material
// initialize by copying values from the previous stage.
Expand Down

0 comments on commit 64ed082

Please sign in to comment.