Merge pull request #42364 from madmiraal/fix-39887

This commit is contained in:
Rémi Verschelde 2021-10-03 13:41:25 +02:00 committed by GitHub
commit a88e82078d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}