Skip to content
New issue

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

ecs_set_name returns 0 in some situations since `1f4c816a2 * #1461 Fl… #1483

Closed

Conversation

pfeodrippe
Copy link
Contributor

@pfeodrippe pfeodrippe commented Dec 21, 2024

…ecs script expression refactor`

Adding a test only here, not fixing anything \o

Would it be related to https://github.com/SanderMertens/flecs/pull/1461/files#diff-e3a8a20303056194087fb9a5c85ec9396d13cc3ed87af18566d1383936a933efR1756 ?

…rtens#1461 Flecs script expression refactor`

Adding a test only here \o
ecs_entity_t child_new = ecs_set_name(world, 0, child_name);
test_assert(parent_new != parent);
test_assert(parent_new != 0);
test_assert(child_new != 0);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are having a 0 in this line

@pfeodrippe
Copy link
Contributor Author

Closing as it is expected behaviour. Thanks, Sander!

@pfeodrippe pfeodrippe closed this Dec 21, 2024
@pfeodrippe
Copy link
Contributor Author

For reference, a33b49c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant