Caruychen / 42Hive-Lem_in

Integrated smart ant colony transport system
2 stars 0 forks source link

Need to modify flow_node #2

Closed Caruychen closed 2 years ago

Caruychen commented 2 years ago

Make_mode function currently creates node in heap and returns pointer. Instead, it can just be created in stack and returned as variable. The flow network array has as each element a copy of the node, instead of a pointer to the node.