aboutsummaryrefslogtreecommitdiff
path: root/src/example/components_internal.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 18:46:06 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 18:46:06 +0100
commit0aa97807cb9b7f1d1850449dd5a5e45b961445ce (patch)
tree8f6a808669a39f5b8d91079ecb30c3d1f11e9e02 /src/example/components_internal.cpp
parentbc2a31190b5afe7754b04e9c61fcda30e577d7d8 (diff)
fix scene_manager example
Diffstat (limited to 'src/example/components_internal.cpp')
-rw-r--r--src/example/components_internal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/example/components_internal.cpp b/src/example/components_internal.cpp
index 7a8a08a..eeecdc0 100644
--- a/src/example/components_internal.cpp
+++ b/src/example/components_internal.cpp
@@ -30,7 +30,7 @@ int main() {
GameObject * game_object[OBJ_COUNT];
for (int i = 0; i < OBJ_COUNT; ++i) {
- GameObject & obj = mgr.new_object("Name", "Tag");
+ GameObject obj = mgr.new_object("Name", "Tag");
obj.add_component<Sprite>("test");
obj.add_component<Rigidbody>(0, 0, i);
}