We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e3ea64 commit 683bd0dCopy full SHA for 683bd0d
_posts/2019-06-25-ecs-baf-part-4.md
@@ -87,7 +87,7 @@ Whenever you want to go back to the parent from a given entity, you can query
87
the above component:
88
89
```
90
-if(auto *comp = registry.try_get<relationship>(entity); relationship && relationship->parent != entt::null) {
+if(auto *comp = registry.try_get<relationship>(entity); comp && comp->parent != entt::null) {
91
// ...
92
}
93
0 commit comments