Skip to content

Commit 9f29536

Browse files
authored
fix(meta): c++ wrapper using wrong assoc cap count (#251)
1 parent caaf9aa commit 9f29536

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ecsact/runtime/meta.hh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,8 @@ ECSACT_ALWAYS_INLINE auto system_assoc_capabilities(
555555
std::vector<std::pair<ecsact_component_like_id, ecsact_system_capability>>;
556556

557557
const auto sys_like_id = ecsact_id_cast<ecsact_system_like_id>(id);
558-
auto count = ecsact_meta_system_capabilities_count(sys_like_id);
558+
auto count =
559+
ecsact_meta_system_assoc_capabilities_count(sys_like_id, assoc_id);
559560
std::vector<ecsact_component_like_id> components;
560561
std::vector<ecsact_system_capability> capabilities;
561562
components.resize(count);

0 commit comments

Comments
 (0)