From 718f09ad201d294498803fdf8646d4fa18c66419 Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Fri, 23 Aug 2019 20:13:05 +0300 Subject: [PATCH] Fix uninitialized inertia value in Body2DSW --- servers/physics_2d/body_2d_sw.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/physics_2d/body_2d_sw.cpp b/servers/physics_2d/body_2d_sw.cpp index 60fb3a3a953..6ba159ca0a4 100644 --- a/servers/physics_2d/body_2d_sw.cpp +++ b/servers/physics_2d/body_2d_sw.cpp @@ -671,6 +671,7 @@ Body2DSW::Body2DSW() : angular_velocity = 0; biased_angular_velocity = 0; mass = 1; + inertia = 0; user_inertia = false; _inv_inertia = 0; _inv_mass = 1;