From 072e40368e19e0f88ec1fbb61fe463a6fffcca36 Mon Sep 17 00:00:00 2001 From: qarmin Date: Thu, 20 Jun 2019 16:59:48 +0200 Subject: Fix always true/false values --- scene/2d/joints_2d.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scene/2d') 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); -- cgit v1.2.3