From 66398ee3a565d0302b16bee3dd7b05eb30db7cc4 Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Wed, 19 Jun 2024 18:07:46 -0700 Subject: [PATCH] fix(meta): c++ wrapper bad container access --- ecsact/runtime/meta.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecsact/runtime/meta.hh b/ecsact/runtime/meta.hh index 82bab388..4e5a5e5a 100644 --- a/ecsact/runtime/meta.hh +++ b/ecsact/runtime/meta.hh @@ -441,7 +441,7 @@ ECSACT_ALWAYS_INLINE auto system_capabilities(SystemLikeID id) { result.reserve(count); for(decltype(count) i = 0; count > i; ++i) { - result[components[i]] = capabilities[i]; + result.insert({components[i], capabilities[i]}); } return result;