Skip to content

Commit

Permalink
code: added fix for #39 c99-only feature
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed Jul 30, 2022
1 parent 785d456 commit b0af4ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/source/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ int32_t librg_world_fetch_all(librg_world *world, int64_t *entity_ids, size_t *e
}

int32_t librg_world_fetch_chunk(librg_world *world, librg_chunk chunk, int64_t *entity_ids, size_t *entity_amount) {
return librg_world_fetch_chunkarray(world, (librg_chunk[]){chunk}, 1, entity_ids, entity_amount);
librg_chunk chunks[1] = {}; chunks[0] = chunk;
return librg_world_fetch_chunkarray(world, chunks, 1, entity_ids, entity_amount);
}

int32_t librg_world_fetch_chunkarray(librg_world *world, const librg_chunk *chunks, size_t chunk_amount, int64_t *entity_ids, size_t *entity_amount) {
Expand Down

0 comments on commit b0af4ec

Please sign in to comment.