Skip to content

Fix members named _ not being created in structs #1568

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

Merged

Conversation

GsLogiMaker
Copy link
Contributor

This PR fixes an issue I found with ecs_struct_init. When attempting to initialize a struct with a member named _ the member would silently not be created at all. The issue was that the method used to create the members, ecs_entity, would return the any entity instead of creating a new one. Swapping that method for ecs_new_from_path fixes the issue.

@SanderMertens
Copy link
Owner

Looks good to me! After you update distr/flecs.c as well CI should pass.

@GsLogiMaker
Copy link
Contributor Author

Cool! I updated it manually this time, but for future reference, is there a way to update it automaticly from src/?

@SanderMertens SanderMertens merged commit 0d6b3ce into SanderMertens:master Feb 18, 2025
71 checks passed
@SanderMertens
Copy link
Owner

It will automatically update when you run bake in the root of the repository.

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.

2 participants