Merge pull request #42365 from madmiraal/fix-39887-3.2

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

View File

@ -188,7 +188,7 @@ Vector<RID> Physics2DShapeQueryParameters::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

@ -186,7 +186,7 @@ Vector<RID> PhysicsShapeQueryParameters::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;
}