diff options
Diffstat (limited to 'src/example/components_internal.cpp')
-rw-r--r-- | src/example/components_internal.cpp | 2 |
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); } |