Skip to content

Commit

Permalink
[docs] Fix word type (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeodrippe authored Aug 22, 2023
1 parent ce3c825 commit b0b48d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -1149,10 +1149,10 @@ while (ecs_filter_next(&it)) {
if (vs_id == ecs_id(Velocity)) {
// We can only use ecs_field if the field type is the same for all results,
// but we can get the table column directly.
Velocity *v = ecs_table_get_id(word, it.table, ecs_id(Velocity), it.offset);
Velocity *v = ecs_table_get_id(world, it.table, ecs_id(Velocity), it.offset);
// iterate as usual
} else if (vs_id == ecs_id(Speed)) {
Speed *s = ecs_table_get_id(word, it.table, ecs_id(Speed), it.offset);
Speed *s = ecs_table_get_id(world, it.table, ecs_id(Speed), it.offset);
// iterate as usual
}
}
Expand Down

0 comments on commit b0b48d6

Please sign in to comment.