Skip to content

Commit f98ef0b

Browse files
committed
Rebase, make it work withmy changes
1 parent 36940aa commit f98ef0b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ecsact/entt/detail/apply_pending.hh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ auto apply_pending_add(::entt::registry& registry) -> void {
1313
registry.emplace<C>(entity);
1414
});
1515
} else {
16-
registry.view<pending_add<C>>().each(
16+
registry.view<pending_add<C>>().each( //
1717
[&](auto entity, const pending_add<C>& comp) {
1818
registry.emplace<C>(entity, comp.value);
19-
registry.emplace<beforechange_storage<C>>(entity, comp.value, false);
19+
registry
20+
.emplace<exec_beforechange_storage<C>>(entity, comp.value, false);
2021
}
2122
);
2223
}

ecsact/entt/detail/internal_markers.hh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ struct beforeremove_storage<C> {
3838
template<typename C>
3939
requires(!std::is_empty_v<C>)
4040
struct exec_beforechange_storage {
41-
C value;
41+
C value;
42+
bool has_update_occurred = false;
4243
};
4344

4445
template<typename C>

0 commit comments

Comments
 (0)