Fixing components update order.
This commit is contained in:
parent
9619843cbe
commit
dd1aeae9f5
|
|
@ -91,7 +91,7 @@ component_t *entity_new_component(entity_t *entity, component_type_t component_t
|
|||
|
||||
if(component->component_init(component)) return NULL;
|
||||
|
||||
if(linked_list_push_front(&entity->components, component_elem)) return NULL;
|
||||
if(linked_list_push_back(&entity->components, component_elem)) return NULL;
|
||||
|
||||
return component;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue