From 237d852ede52e22e10e3e4023d3bf504654d7392 Mon Sep 17 00:00:00 2001 From: light7734 Date: Mon, 6 Oct 2025 11:59:57 +0330 Subject: [PATCH] fix(ecs): revert mistakenly removing return statement in Entity::add --- modules/ecs/public/entity.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/ecs/public/entity.hpp b/modules/ecs/public/entity.hpp index ba24a4c..29fb61d 100644 --- a/modules/ecs/public/entity.hpp +++ b/modules/ecs/public/entity.hpp @@ -19,7 +19,7 @@ public: template auto add(Component_T component) -> Component_T & { - m_registry->add(m_identifier, component); + return m_registry->add(m_identifier, component); } template @@ -42,7 +42,6 @@ public: private: memory::Ref m_registry; - EntityId m_identifier; };