Skip to content

Commit

Permalink
fix(meta): c++ wrapper using wrong assoc cap count (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy authored Jun 19, 2024
1 parent caaf9aa commit 9f29536
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ecsact/runtime/meta.hh
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@ ECSACT_ALWAYS_INLINE auto system_assoc_capabilities(
std::vector<std::pair<ecsact_component_like_id, ecsact_system_capability>>;

const auto sys_like_id = ecsact_id_cast<ecsact_system_like_id>(id);
auto count = ecsact_meta_system_capabilities_count(sys_like_id);
auto count =
ecsact_meta_system_assoc_capabilities_count(sys_like_id, assoc_id);
std::vector<ecsact_component_like_id> components;
std::vector<ecsact_system_capability> capabilities;
components.resize(count);
Expand Down

0 comments on commit 9f29536

Please sign in to comment.