diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-03 13:41:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-03 13:41:25 +0200 |
commit | a88e82078dfa1e06acad59eb34bf2bbb64ed5978 (patch) | |
tree | 228097801aa97c27a49fc98af1ea1ce9a91a8d60 /servers | |
parent | 75d3a10a233f1ce412aba16eeee4038c4a7e587a (diff) | |
parent | e9df164995321a88eaca9ba606bb716acdb38fc6 (diff) |
Merge pull request #42364 from madmiraal/fix-39887
Diffstat (limited to 'servers')
-rw-r--r-- | servers/physics_server_2d.cpp | 2 | ||||
-rw-r--r-- | servers/physics_server_3d.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/servers/physics_server_2d.cpp b/servers/physics_server_2d.cpp index 8e743e0dc0..2a4240baee 100644 --- a/servers/physics_server_2d.cpp +++ b/servers/physics_server_2d.cpp @@ -199,7 +199,7 @@ Vector<RID> PhysicsShapeQueryParameters2D::get_exclude() const { ret.resize(exclude.size()); int idx = 0; for (Set<RID>::Element *E = exclude.front(); E; E = E->next()) { - ret.write[idx] = E->get(); + ret.write[idx++] = E->get(); } return ret; } diff --git a/servers/physics_server_3d.cpp b/servers/physics_server_3d.cpp index 9384cdc7b8..f444c2883d 100644 --- a/servers/physics_server_3d.cpp +++ b/servers/physics_server_3d.cpp @@ -194,7 +194,7 @@ Vector<RID> PhysicsShapeQueryParameters3D::get_exclude() const { ret.resize(exclude.size()); int idx = 0; for (Set<RID>::Element *E = exclude.front(); E; E = E->next()) { - ret.write[idx] = E->get(); + ret.write[idx++] = E->get(); } return ret; } |