641 {
642 int count = 0;
644 {
646
648 {
649 resolved_recipes[count] = recipe_id;
652
653 count++;
654 }
655 }
656 return count;
657 }
ItemBase m_sortedIngredients[MAX_NUMBER_OF_INGREDIENTS]
ItemBase m_ingredient1[MAX_CONCURENT_RECIPES]
const int MAX_CONCURENT_RECIPES
ref array< int > m_RecipesMatched
ItemBase m_ingredient2[MAX_CONCURENT_RECIPES]
bool SortIngredientsInRecipe(int id, int num_of_ingredients, ItemBase ingredients_unsorted[], ItemBase ingredients_sorted[])
sorts ingredients correctly as either first or second ingredient based on their masks