Skip to content

Commit

Permalink
Fixed: CCmd "listmaterials" failed to interpret the second argument as a
Browse files Browse the repository at this point in the history
search term when it is determined not to be a namespace name.
  • Loading branch information
danij-deng committed Jul 11, 2011
1 parent 7a75928 commit 302c414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/p_materialmanager.c
Expand Up @@ -1991,6 +1991,6 @@ D_CMD(ListMaterials)
Con_Printf("Invalid namespace \"%s\".\n", argv[1]);
return false;
}
printMaterials(namespaceId, (argc > 2? argv[2] : (argc > 1 && namespaceId == MN_ANY? argv[1] : NULL)));
printMaterials(namespaceId, (argc > 2? argv[2] : (argc > 1 && !VALID_MATERIALNAMESPACEID(namespaceId)? argv[1] : NULL)));
return true;
}

0 comments on commit 302c414

Please sign in to comment.