Skip to content

Commit

Permalink
Merge pull request godotengine#94521 from jamie-pate/fix_92333
Browse files Browse the repository at this point in the history
Fix dynamic-stack-buffer-overflow crash when executing random functions on random physics objects
  • Loading branch information
akien-mga committed Jul 19, 2024
2 parents cf9e485 + eb5f129 commit d9bfdfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/3d/physics/rigid_body_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ void RigidBody3D::_body_state_changed(PhysicsDirectBodyState3D *p_state) {
//process additions

for (int i = 0; i < toadd_count; i++) {
_body_inout(1, toremove[i].rid, toadd[i].id, toadd[i].shape, toadd[i].local_shape);
_body_inout(1, toadd[i].rid, toadd[i].id, toadd[i].shape, toadd[i].local_shape);
}

contact_monitor->locked = false;
Expand Down

0 comments on commit d9bfdfd

Please sign in to comment.