Fixed #4163 (intersect_shape crashes on results limit)
(cherry picked from commit d239e6bc0e
)
This commit is contained in:
parent
b24c3be564
commit
a0b6645858
|
@ -198,7 +198,7 @@ int Physics2DDirectSpaceStateSW::intersect_shape(const RID& p_shape, const Matri
|
||||||
Rect2 aabb = p_xform.xform(shape->get_aabb());
|
Rect2 aabb = p_xform.xform(shape->get_aabb());
|
||||||
aabb=aabb.grow(p_margin);
|
aabb=aabb.grow(p_margin);
|
||||||
|
|
||||||
int amount = space->broadphase->cull_aabb(aabb,space->intersection_query_results,Space2DSW::INTERSECTION_QUERY_MAX,space->intersection_query_subindex_results);
|
int amount = space->broadphase->cull_aabb(aabb,space->intersection_query_results,p_result_max,space->intersection_query_subindex_results);
|
||||||
|
|
||||||
bool collided=false;
|
bool collided=false;
|
||||||
int cc=0;
|
int cc=0;
|
||||||
|
|
Loading…
Reference in New Issue