Fix dynamic-stack-buffer-overflow crash when executing random functions on random physics objects

Fixes #92333

This looks correct, and fixes the ASAN assertion I'm currently getting
in my program.
This commit is contained in:
Jamie Pate 2024-07-18 19:20:17 -07:00
parent ff8a2780ee
commit eb5f1299b2
1 changed files with 1 additions and 1 deletions

View File

@ -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;