aboutsummaryrefslogtreecommitdiff
path: root/src/test/ScriptTest.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 18:47:18 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 18:47:18 +0100
commit6c35bd16f254f687f2b415234e36b13f0f8897a8 (patch)
tree528a4df0bfd1dad6f8b0ead38b53441bc4712fd6 /src/test/ScriptTest.cpp
parent0aa97807cb9b7f1d1850449dd5a5e45b961445ce (diff)
fix unit tests
Diffstat (limited to 'src/test/ScriptTest.cpp')
-rw-r--r--src/test/ScriptTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ScriptTest.cpp b/src/test/ScriptTest.cpp
index bab9e52..19fef6d 100644
--- a/src/test/ScriptTest.cpp
+++ b/src/test/ScriptTest.cpp
@@ -36,7 +36,7 @@ public:
void SetUp() override {
auto & mgr = this->component_manager;
- GameObject & entity = mgr.new_object("name");
+ GameObject entity = mgr.new_object("name");
BehaviorScript & component = entity.add_component<BehaviorScript>();
this->behaviorscript_ref = &component;