diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-06-20 16:59:48 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-06-20 16:59:48 +0200 |
commit | 072e40368e19e0f88ec1fbb61fe463a6fffcca36 (patch) | |
tree | 2a5c9383550dc22392bb210d5be570e1baa33fe2 /scene/2d | |
parent | 7a8dcb9a114d742f9bc1e269d738903c00729b8b (diff) |
Fix always true/false values
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/joints_2d.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/2d/joints_2d.cpp b/scene/2d/joints_2d.cpp index 5b14b3e8e1..d8156a0afe 100644 --- a/scene/2d/joints_2d.cpp +++ b/scene/2d/joints_2d.cpp @@ -61,9 +61,7 @@ void Joint2D::_update_joint(bool p_only_free) { if (!body_a || !body_b) return; - if (!body_a) { - SWAP(body_a, body_b); - } + SWAP(body_a, body_b); joint = _configure_joint(body_a, body_b); |