From 6e0892f223ba2092f4b99d08eeeae4870b88dc95 Mon Sep 17 00:00:00 2001 From: Aron de Castro Date: Sun, 10 Sep 2017 13:07:47 -0300 Subject: Added to kinematicbody2d the copy and paste of the API friendler of KinematicBody --- scene/3d/physics_body.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/3d') diff --git a/scene/3d/physics_body.cpp b/scene/3d/physics_body.cpp index 6a8226c0e1..7525eb5069 100644 --- a/scene/3d/physics_body.cpp +++ b/scene/3d/physics_body.cpp @@ -1061,7 +1061,7 @@ KinematicBody::Collision KinematicBody::get_slide_collision(int p_bounce) const Ref KinematicBody::_get_slide_collision(int p_bounce) { ERR_FAIL_INDEX_V(p_bounce, colliders.size(), Ref()); - if (p_bounce > slide_colliders.size()) { + if (p_bounce >= slide_colliders.size()) { slide_colliders.resize(p_bounce + 1); } -- cgit v1.2.3