Skip to content

Commit

Permalink
#1090 Fix assignment within conditional expression error
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Dec 17, 2023
1 parent 6fd0656 commit 5e6f674
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions flecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -24905,8 +24905,8 @@ struct entity_with_delegate_impl<arg_list<Args ...>> {
}

ArrayType ptrs;
bool has_components;
if ((has_components = get_ptrs(world, r, table, ptrs))) {
bool has_components = get_ptrs(world, r, table, ptrs);
if (has_components) {
invoke_callback(func, 0, ptrs);
}

Expand All @@ -24928,8 +24928,8 @@ struct entity_with_delegate_impl<arg_list<Args ...>> {
}

ArrayType ptrs;
bool has_components;
if ((has_components = get_ptrs(world, r, table, ptrs))) {
bool has_components = get_ptrs(world, r, table, ptrs);
if (has_components) {
invoke_callback(func, 0, ptrs);
}

Expand Down
8 changes: 4 additions & 4 deletions include/flecs/addons/cpp/delegate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,8 +734,8 @@ struct entity_with_delegate_impl<arg_list<Args ...>> {
}

ArrayType ptrs;
bool has_components;
if ((has_components = get_ptrs(world, r, table, ptrs))) {
bool has_components = get_ptrs(world, r, table, ptrs);
if (has_components) {
invoke_callback(func, 0, ptrs);
}

Expand All @@ -757,8 +757,8 @@ struct entity_with_delegate_impl<arg_list<Args ...>> {
}

ArrayType ptrs;
bool has_components;
if ((has_components = get_ptrs(world, r, table, ptrs))) {
bool has_components = get_ptrs(world, r, table, ptrs);
if (has_components) {
invoke_callback(func, 0, ptrs);
}

Expand Down

0 comments on commit 5e6f674

Please sign in to comment.