We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The following snippet is triggering an exception from what looks like memory corruption.
To Reproduce
struct AtrValue { float Value; }; struct BodyPart { float Health; }; int main() { flecs::world ecs; auto Str = ecs.entity("Str"); auto Agi = ecs.entity("Agi"); auto Chest = ecs.entity("Chest"); auto Leg = ecs.entity("Leg"); auto e = ecs.entity() .set<AtrValue>(Str, {5}) .set<AtrValue>(Agi, {6}) .set<BodyPart>(Chest, {10}) .set<BodyPart>(Leg, {7}); ecs.system<AtrValue>() .arg(1).obj(Str) .iter([](flecs::iter& Iter, AtrValue* AtrValues) { for(auto i : Iter) { auto e = Iter.entity(i); e.each<BodyPart>([&](flecs::entity Key) { printf("%s\n", Key.str().c_str()); }); } }); ecs.progress(); }
The text was updated successfully, but these errors were encountered:
#525 fix issue where entity::each passes stage to ecs_type_match
6035e63
8ed305f
1055249
Fixed!
Sorry, something went wrong.
No branches or pull requests
Describe the bug
The following snippet is triggering an exception from what looks like memory corruption.
To Reproduce
The text was updated successfully, but these errors were encountered: