diff --git a/ZEngine/ZEngine/ECS/Reflection/ComponentReflectionRegistry.cpp b/ZEngine/ZEngine/ECS/Reflection/ComponentReflectionRegistry.cpp index bda592cb..2023aeb1 100644 --- a/ZEngine/ZEngine/ECS/Reflection/ComponentReflectionRegistry.cpp +++ b/ZEngine/ZEngine/ECS/Reflection/ComponentReflectionRegistry.cpp @@ -32,6 +32,8 @@ namespace ZEngine::ECS return; } + ZENGINE_VALIDATE_ASSERT(m_meta.size() < m_meta.capacity(), "ComponentReflectionRegistry::Register: exceeded reserved capacity") + m_meta.push(meta); }