Skip to content

Commit

Permalink
fix otherwise unitialized variables, found in godotengine#31694
Browse files Browse the repository at this point in the history
(cherry picked from commit 4817595)
  • Loading branch information
profan authored and akien-mga committed Nov 8, 2019
1 parent ee4d1e4 commit 80752cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions scene/3d/physics_body.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ class RigidBody : public PhysicsBody {
ShapePair(int p_bs, int p_ls) {
body_shape = p_bs;
local_shape = p_ls;
tagged = false;
}
};
struct RigidBody_RemoveAction {
Expand Down
1 change: 1 addition & 0 deletions scene/animation/animation_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 80752cc

Please sign in to comment.