1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

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.
This commit is contained in:
Jamie Pate
2024-07-18 19:20:17 -07:00
parent ff8a2780ee
commit eb5f1299b2

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;