commit: 772e7539a4663f77ceb66ae9d4dcbe63adb3265b
parent fae4d5e56247c68055aafdb3b0a3bc9128aca0fe
Author: neauoire <aliceffekt@gmail.com>
Date: Sat, 21 Dec 2019 17:10:24 -0500
Trying to fix OSX error
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/ingredient.c b/src/ingredient.c
@@ -4,8 +4,6 @@ typedef struct Ingredient {
char *name;
char *description;
struct Ingredient *parent;
- // int children_len;
- // struct Ingredient *children[16];
} Ingredient;
typedef struct {
@@ -17,6 +15,7 @@ Ingredient create_ingredient(char *name, char *description) {
Ingredient a;
a.name = name;
a.description = description;
+ a.parent = NULL;
return a;
}
@@ -25,8 +24,6 @@ Ingredient create_child_ingredient(Ingredient *parent, char *name, char *descrip
a.name = name;
a.description = description;
a.parent = parent;
- // parent->children[parent->children_len] = a;
- // parent->children_len++;
return a;
}