Skip to content

Commit

Permalink
Fixed typo in R_MaterialNumForName that would always return zero rega…
Browse files Browse the repository at this point in the history
…rdless of whether the material was found (doh!).
  • Loading branch information
danij committed Oct 7, 2008
1 parent 5f75ed0 commit e4a637e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/r_materials.c
Expand Up @@ -336,7 +336,7 @@ materialnum_t R_MaterialNumForName(const char* name, materialtype_t type)
materialnum_t result = R_MaterialCheckNumForName(name, type);

// Not found.
if(result = 0 && !levelSetup) // Don't announce during level setup.
if(result == 0 && !levelSetup) // Don't announce during level setup.
Con_Message("R_MaterialNumForName: %.8s type %i not found!\n",
name, type);
return result;
Expand Down

0 comments on commit e4a637e

Please sign in to comment.