aboutsummaryrefslogtreecommitdiff
path: root/src/test/PhysicsTest.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-11-14 18:49:17 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-11-14 18:49:17 +0100
commit15c4cf103c4da7808b7173581ead22ab7190632d (patch)
tree85d1a3a78325661e41b2e50607e735982756fbb4 /src/test/PhysicsTest.cpp
parent5ee56897e28dea05853e463e061d7f21cb9771a3 (diff)
updated test
Diffstat (limited to 'src/test/PhysicsTest.cpp')
-rw-r--r--src/test/PhysicsTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/PhysicsTest.cpp b/src/test/PhysicsTest.cpp
index 5385962..3332f74 100644
--- a/src/test/PhysicsTest.cpp
+++ b/src/test/PhysicsTest.cpp
@@ -16,6 +16,7 @@ protected:
PhysicsSystem physics_system;
void SetUp() override {
ComponentManager & mgr = ComponentManager::get_instance();
+ mgr.delete_all_components();
std::vector<std::reference_wrapper<Transform>> transforms
= mgr.get_components_by_id<Transform>(0);
if (transforms.empty()) {