Skip to content

Commit

Permalink
Fix dynamic-stack-buffer-overflow crash when executing random functio…
Browse files Browse the repository at this point in the history
…ns on random physics objects

Fixes godotengine#92333

This looks correct, and fixes the ASAN assertion I'm currently getting
in my program.
  • Loading branch information
jamie-pate authored and 2nafish117 committed Aug 5, 2024
1 parent c6dfa0a commit 595066f
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 595066f

Please sign in to comment.