Skip to content

Commit 9dfb8c0

Browse files
#2017 Fix incorrect assert in alert builder
1 parent 1c3bba1 commit 9dfb8c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

distr/flecs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35843,7 +35843,7 @@ struct alert_builder_i : query_builder_i<Base, Components ...> {
3584335843
flecs::entity_t id = _::type<T>::id(world_v());
3584435844
flecs::entity_t mid = ecs_lookup_path_w_sep(
3584535845
world_v(), id, m, "::", "::", false);
35846-
ecs_assert(m != 0, ECS_INVALID_PARAMETER, NULL);
35846+
ecs_assert(mid != 0, ECS_INVALID_PARAMETER, NULL);
3584735847
desc_->var = v;
3584835848
return this->member(mid);
3584935849
}

include/flecs/addons/cpp/mixins/alerts/builder_i.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ struct alert_builder_i : query_builder_i<Base, Components ...> {
136136
flecs::entity_t id = _::type<T>::id(world_v());
137137
flecs::entity_t mid = ecs_lookup_path_w_sep(
138138
world_v(), id, m, "::", "::", false);
139-
ecs_assert(m != 0, ECS_INVALID_PARAMETER, NULL);
139+
ecs_assert(mid != 0, ECS_INVALID_PARAMETER, NULL);
140140
desc_->var = v;
141141
return this->member(mid);
142142
}

0 commit comments

Comments
 (0)