From c6ce7e13c5fe802a7eba35189916023925dbfdc1 Mon Sep 17 00:00:00 2001 From: max-001 Date: Wed, 6 Nov 2024 14:16:55 +0100 Subject: Added comments and replaced some auto with concrete types --- src/crepe/api/GameObject.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crepe/api/GameObject.hpp') diff --git a/src/crepe/api/GameObject.hpp b/src/crepe/api/GameObject.hpp index 77cf40e..bfba7fe 100644 --- a/src/crepe/api/GameObject.hpp +++ b/src/crepe/api/GameObject.hpp @@ -8,7 +8,7 @@ namespace crepe { template T & GameObject::add_component(Args &&... args) { - auto & mgr = ComponentManager::get_instance(); + ComponentManager & mgr = ComponentManager::get_instance(); return mgr.add_component(this->id, std::forward(args)...); } -- cgit v1.2.3