diff options
author | Marc Gilleron <marc.gilleron@gmail.com> | 2016-04-12 02:18:41 +0200 |
---|---|---|
committer | Marc Gilleron <marc.gilleron@gmail.com> | 2016-04-12 02:18:41 +0200 |
commit | d239e6bc0ebf7ac987f2c1991a5dceb33ad2a8f2 (patch) | |
tree | 09f8da06ba22a8609e0ea6a7d414c68dd9edba30 /servers/physics_2d | |
parent | 7d1b4567b07ac4d88bca58f70b773dd996d0cae6 (diff) |
Fixed #4163 (intersect_shape crashes on results limit)
Diffstat (limited to 'servers/physics_2d')
-rw-r--r-- | servers/physics_2d/space_2d_sw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_2d/space_2d_sw.cpp b/servers/physics_2d/space_2d_sw.cpp index 027e218bfc..d83efeea9c 100644 --- a/servers/physics_2d/space_2d_sw.cpp +++ b/servers/physics_2d/space_2d_sw.cpp @@ -198,7 +198,7 @@ int Physics2DDirectSpaceStateSW::intersect_shape(const RID& p_shape, const Matri Rect2 aabb = p_xform.xform(shape->get_aabb()); 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; int cc=0; |