Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix aliases not working in shapeless crafting recipes
  • Loading branch information
kahrl committed Aug 25, 2013
1 parent 4679455 commit fead7a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/craftdef.cpp
Expand Up @@ -525,7 +525,7 @@ bool CraftDefinitionShapeless::check(const CraftInput &input, IGameDef *gamedef)
}

// Try with all permutations of the recipe
std::vector<std::string> recipe_copy = recipe;
std::vector<std::string> recipe_copy = craftGetItemNames(recipe, gamedef);
// Start from the lexicographically first permutation (=sorted)
std::sort(recipe_copy.begin(), recipe_copy.end());
//while(std::prev_permutation(recipe_copy.begin(), recipe_copy.end())){}
Expand Down

0 comments on commit fead7a2

Please sign in to comment.