aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/GameObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/GameObject.h')
-rw-r--r--src/crepe/GameObject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/GameObject.h b/src/crepe/GameObject.h
index 3588d9a..b5d6399 100644
--- a/src/crepe/GameObject.h
+++ b/src/crepe/GameObject.h
@@ -10,7 +10,7 @@ public:
GameObject(uint32_t id, std::string name, std::string tag, int layer);
template <typename T, typename... Args>
- void add_component(Args &&... args);
+ T & add_component(Args &&... args);
uint32_t id;
std::string name;