diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-08-27 20:16:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-27 20:16:29 +0200 |
commit | 177a5988fffd960a760e683c370e68368e431260 (patch) | |
tree | ddf25c7b312da143a4ab4b2d608f7f4da27aa927 | |
parent | f38c64e8b13d5700f87087f731dddf2590300432 (diff) | |
parent | 4817595c0eecf6c63ff338628f56acd5ddde6f25 (diff) |
Merge pull request #31716 from profan/fix/unitialized
Fix otherwise unitialized variables, found in #31694
-rw-r--r-- | scene/3d/physics_body.h | 1 | ||||
-rw-r--r-- | scene/animation/animation_tree.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/physics_body.h b/scene/3d/physics_body.h index aa6030d44e..0e2e614717 100644 --- a/scene/3d/physics_body.h +++ b/scene/3d/physics_body.h @@ -162,6 +162,7 @@ protected: ShapePair(int p_bs, int p_ls) { body_shape = p_bs; local_shape = p_ls; + tagged = false; } }; struct RigidBody_RemoveAction { diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index 6745b57cff..bb7c400cfe 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -1412,6 +1412,7 @@ void AnimationTree::_update_properties_for_node(const String &p_base_path, Ref<A Vector<Activity> activity; for (int i = 0; i < node->get_input_count(); i++) { Activity a; + a.activity = 0; a.last_pass = 0; activity.push_back(a); } |