1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Increment index when populating PhysicsShapeQueryParameters exclude array.

This commit is contained in:
Marcel Admiraal
2020-09-27 11:48:31 +01:00
parent 545da82427
commit e9df164995
2 changed files with 2 additions and 2 deletions

View File

@@ -193,7 +193,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;
}