Default-construct components for created entities in util::ecs
This commit is contained in:
parent
c55bea1228
commit
32529137eb
1 changed files with 3 additions and 0 deletions
|
|
@ -219,6 +219,9 @@ namespace psemek::util
|
||||||
}
|
}
|
||||||
|
|
||||||
auto result = list_head_;
|
auto result = list_head_;
|
||||||
|
|
||||||
|
((std::get<I>(entity_components_)[result] = {}), ...);
|
||||||
|
|
||||||
list_head_ = list_[list_head_];
|
list_head_ = list_[list_head_];
|
||||||
list_[result] = result;
|
list_[result] = result;
|
||||||
entity_count_++;
|
entity_count_++;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue