diff options
Diffstat (limited to 'mwe/ecs-homemade/inc/GameObjectMax.h')
-rw-r--r-- | mwe/ecs-homemade/inc/GameObjectMax.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mwe/ecs-homemade/inc/GameObjectMax.h b/mwe/ecs-homemade/inc/GameObjectMax.h index 3029053..5fab44a 100644 --- a/mwe/ecs-homemade/inc/GameObjectMax.h +++ b/mwe/ecs-homemade/inc/GameObjectMax.h @@ -8,7 +8,7 @@ public: GameObject(std::uint32_t id, std::string name, std::string tag, int layer); template <typename T, typename... Args> - void AddComponent(Args &&... args); + T & AddComponent(Args &&... args); std::uint32_t mId; std::string mName; |