summaryrefslogtreecommitdiffstats
path: root/servers/physics_2d/constraint_2d_sw.h
diff options
context:
space:
mode:
authorqarmin <mikrutrafal@protonmail.com>2021-09-14 11:01:49 +0200
committerRafał Mikrut <mikrutrafal@protonmail.com>2021-09-15 19:41:32 +0200
commit91257c39000517dd5644caf0e02a7bc6cd4574a9 (patch)
treebda41f7f6f95f48a9e8a4f1df794e48c767eded3 /servers/physics_2d/constraint_2d_sw.h
parent7b21b1bb608909b373237d19467c6236537b8062 (diff)
downloadredot-engine-91257c39000517dd5644caf0e02a7bc6cd4574a9.tar.gz
Initialize variables in servers/physics
Diffstat (limited to 'servers/physics_2d/constraint_2d_sw.h')
-rw-r--r--servers/physics_2d/constraint_2d_sw.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/servers/physics_2d/constraint_2d_sw.h b/servers/physics_2d/constraint_2d_sw.h
index 5e8dfbe570..df300d666d 100644
--- a/servers/physics_2d/constraint_2d_sw.h
+++ b/servers/physics_2d/constraint_2d_sw.h
@@ -36,8 +36,8 @@
class Constraint2DSW {
Body2DSW **_body_ptr;
int _body_count;
- uint64_t island_step;
- bool disabled_collisions_between_bodies;
+ uint64_t island_step = 0;
+ bool disabled_collisions_between_bodies = true;
RID self;
@@ -45,8 +45,6 @@ protected:
Constraint2DSW(Body2DSW **p_body_ptr = nullptr, int p_body_count = 0) {
_body_ptr = p_body_ptr;
_body_count = p_body_count;
- island_step = 0;
- disabled_collisions_between_bodies = true;
}
public: