Skip to content

Commit 683bd0d

Browse files
committedSep 5, 2020
fixed typo (thanks to Miroslav Pavlíček for pointing this out)
1 parent 4e3ea64 commit 683bd0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎_posts/2019-06-25-ecs-baf-part-4.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Whenever you want to go back to the parent from a given entity, you can query
8787
the above component:
8888

8989
```
90-
if(auto *comp = registry.try_get<relationship>(entity); relationship && relationship->parent != entt::null) {
90+
if(auto *comp = registry.try_get<relationship>(entity); comp && comp->parent != entt::null) {
9191
// ...
9292
}
9393
```

0 commit comments

Comments
 (0)
Failed to load comments.