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:
commit
d9bfdfdd64
|
@ -249,7 +249,7 @@ void RigidBody3D::_body_state_changed(PhysicsDirectBodyState3D *p_state) {
|
||||||
//process additions
|
//process additions
|
||||||
|
|
||||||
for (int i = 0; i < toadd_count; i++) {
|
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;
|
contact_monitor->locked = false;
|
||||||
|
|
Loading…
Reference in New Issue