Skip to content

Commit d9bfdfd

Browse files
committed
Merge pull request godotengine#94521 from jamie-pate/fix_92333
Fix dynamic-stack-buffer-overflow crash when executing random functions on random physics objects
2 parents cf9e485 + eb5f129 commit d9bfdfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/3d/physics/rigid_body_3d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void RigidBody3D::_body_state_changed(PhysicsDirectBodyState3D *p_state) {
249249
//process additions
250250

251251
for (int i = 0; i < toadd_count; i++) {
252-
_body_inout(1, toremove[i].rid, toadd[i].id, toadd[i].shape, toadd[i].local_shape);
252+
_body_inout(1, toadd[i].rid, toadd[i].id, toadd[i].shape, toadd[i].local_shape);
253253
}
254254

255255
contact_monitor->locked = false;

0 commit comments

Comments
 (0)