Skip to content

Commit 2677d39

Browse files
authored
fix(meta): c++ wrapper bad container access (#252)
1 parent c770d3c commit 2677d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ecsact/runtime/meta.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ ECSACT_ALWAYS_INLINE auto system_capabilities(SystemLikeID id) {
441441
result.reserve(count);
442442

443443
for(decltype(count) i = 0; count > i; ++i) {
444-
result[components[i]] = capabilities[i];
444+
result.insert({components[i], capabilities[i]});
445445
}
446446

447447
return result;

0 commit comments

Comments
 (0)