diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-08 09:31:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 09:31:08 +0100 |
commit | cea42faa77d72cdbea8ab7c38936e7c8722900d0 (patch) | |
tree | 3c7f54d3b3e6d355a2ffb14933e0b5461478b224 /scene/3d/velocity_tracker_3d.h | |
parent | 57e2822a05c29db3980ad243c37a34acf6c4d14b (diff) | |
parent | 003bb8e1a8c9bb81e3cb0733b3f0d569b1518881 (diff) |
Merge pull request #44630 from qarmin/cppcheck_scene_1
Initialize class variables with default values in scene/ [1/2]
Diffstat (limited to 'scene/3d/velocity_tracker_3d.h')
-rw-r--r-- | scene/3d/velocity_tracker_3d.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/3d/velocity_tracker_3d.h b/scene/3d/velocity_tracker_3d.h index 3fc89cc7fb..e971f4755a 100644 --- a/scene/3d/velocity_tracker_3d.h +++ b/scene/3d/velocity_tracker_3d.h @@ -37,13 +37,13 @@ class VelocityTracker3D : public Reference { GDCLASS(VelocityTracker3D, Reference); struct PositionHistory { - uint64_t frame; + uint64_t frame = 0; Vector3 position; }; - bool physics_step; + bool physics_step = false; Vector<PositionHistory> position_history; - int position_history_len; + int position_history_len = 0; protected: static void _bind_methods(); |