Increment index when populating PhysicsShapeQueryParameters exclude array.
This commit is contained in:
parent
4162df4397
commit
e7d779dbb3
|
@ -199,7 +199,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;
|
||||
}
|
||||
|
|
|
@ -195,7 +195,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue