mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
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
|
||||
|
||||
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
Block a user