Skip to content

Commit

Permalink
Fixed: S_MaterialClassForName did not always return the correct
Browse files Browse the repository at this point in the history
environment class for a given Material path.
  • Loading branch information
danij-deng committed Sep 17, 2011
1 parent c8cb22b commit a0cb481
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doomsday/engine/portable/src/s_environ.c
Expand Up @@ -100,10 +100,12 @@ material_env_class_t S_MaterialClassForName(const Uri* path)
if(Uri_Equality(ref, path))
{ // A match!
// See if we recognise the material name.
material_env_class_t k;
int k;
for(k = 0; k < NUM_MATERIAL_ENV_CLASSES; ++k)
{
if(!stricmp(env->id, matInfo[k].name))
return k;
return MEC_FIRST + k;
}
return MEC_UNKNOWN;
}
}
Expand Down

0 comments on commit a0cb481

Please sign in to comment.