Merge pull request #94521 from jamie-pate/fix_92333

Fix dynamic-stack-buffer-overflow crash when executing random functions on random physics objects
This commit is contained in:
Rémi Verschelde 2024-07-19 11:10:59 +02:00
commit d9bfdfdd64
No known key found for this signature in database
GPG Key ID: C3336907360768E1

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;