summaryrefslogtreecommitdiffstats
path: root/scene/3d/physics
diff options
context:
space:
mode:
authorJamie Pate <jpate@fortinet.com>2024-07-18 19:20:17 -0700
committerJamie Pate <jpate@fortinet.com>2024-07-18 19:22:03 -0700
commiteb5f1299b2a5d4fa73e8d8b57c9104dedb92d746 (patch)
tree53e30956e622449e2790316e34710f13ed5bbad8 /scene/3d/physics
parentff8a2780ee777c2456ce42368e1065774c7c4c3f (diff)
downloadredot-engine-eb5f1299b2a5d4fa73e8d8b57c9104dedb92d746.tar.gz
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.
Diffstat (limited to 'scene/3d/physics')
-rw-r--r--scene/3d/physics/rigid_body_3d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/physics/rigid_body_3d.cpp b/scene/3d/physics/rigid_body_3d.cpp
index 5ea413f2c4..275e8cd7a9 100644
--- a/scene/3d/physics/rigid_body_3d.cpp
+++ b/scene/3d/physics/rigid_body_3d.cpp
@@ -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;