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 After changing the name of an entity to NULL and then back to the original name ecs_lookup can't find the entity anymore.
NULL
ecs_lookup
To Reproduce Run the following example code:
#include "flecs/flecs.h" #include <stdio.h> int main(void) { ecs_world_t* w = ecs_init(); ecs_entity_t e = ecs_new_id(w); ecs_set_name(w, e, "bob"); if (ecs_lookup(w, "bob")) { printf("found entity 'bob'\n"); } ecs_set_name(w, e, NULL); ecs_set_name(w, e, "bob"); if (ecs_lookup(w, "bob")) { printf("found entity 'bob'\n"); } return ecs_fini(w); }
Expected behavior Should print 'found entity 'bob'' twice.
Additional context I'm on Fedora 36 compiling with gcc 12.2.1.
The text was updated successfully, but these errors were encountered:
#795 fix issue with name lookups after setting name to NULL
d408c6e
Fixed!
Sorry, something went wrong.
No branches or pull requests
Describe the bug
After changing the name of an entity to
NULL
and then back to the original nameecs_lookup
can't find the entity anymore.To Reproduce
Run the following example code:
Expected behavior
Should print 'found entity 'bob'' twice.
Additional context
I'm on Fedora 36 compiling with gcc 12.2.1.
The text was updated successfully, but these errors were encountered: