You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Increment index when populating PhysicsShapeQueryParameters exclude array.
This commit is contained in:
@@ -197,7 +197,7 @@ Vector<RID> PhysicsShapeQueryParameters2D::get_exclude() const {
|
|||||||
ret.resize(exclude.size());
|
ret.resize(exclude.size());
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
for (Set<RID>::Element *E = exclude.front(); E; E = E->next()) {
|
for (Set<RID>::Element *E = exclude.front(); E; E = E->next()) {
|
||||||
ret.write[idx] = E->get();
|
ret.write[idx++] = E->get();
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ Vector<RID> PhysicsShapeQueryParameters3D::get_exclude() const {
|
|||||||
ret.resize(exclude.size());
|
ret.resize(exclude.size());
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
for (Set<RID>::Element *E = exclude.front(); E; E = E->next()) {
|
for (Set<RID>::Element *E = exclude.front(); E; E = E->next()) {
|
||||||
ret.write[idx] = E->get();
|
ret.write[idx++] = E->get();
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user