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:
parent
ff8a2780ee
commit
eb5f1299b2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue