634 {
635 int count = 0;
637 {
639
641 {
642 resolved_recipes[count] = recipe_id;
645
646 count++;
647 }
648 }
649 return count;
650 }
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