summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-10-03 13:41:25 +0200
committerGitHub <noreply@github.com>2021-10-03 13:41:25 +0200
commita88e82078dfa1e06acad59eb34bf2bbb64ed5978 (patch)
tree228097801aa97c27a49fc98af1ea1ce9a91a8d60 /servers
parent75d3a10a233f1ce412aba16eeee4038c4a7e587a (diff)
parente9df164995321a88eaca9ba606bb716acdb38fc6 (diff)
Merge pull request #42364 from madmiraal/fix-39887
Diffstat (limited to 'servers')
-rw-r--r--servers/physics_server_2d.cpp2
-rw-r--r--servers/physics_server_3d.cpp2
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;
}