summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorAron de Castro <aron.castro.coelho@gmail.com>2017-09-10 13:07:47 -0300
committerAron de Castro <aron.castro.coelho@gmail.com>2017-09-10 13:07:47 -0300
commit6e0892f223ba2092f4b99d08eeeae4870b88dc95 (patch)
tree7700d2fffc1c7e7b3283f7275d24043adfbd23fb /scene/3d
parentd1cb73b47a17de830d9474026ffa7b3587cfbc68 (diff)
Added to kinematicbody2d the copy and paste of the API friendler of KinematicBody
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/physics_body.cpp2
1 files changed, 1 insertions, 1 deletions
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<KinematicCollision> KinematicBody::_get_slide_collision(int p_bounce) {
ERR_FAIL_INDEX_V(p_bounce, colliders.size(), Ref<KinematicCollision>());
- if (p_bounce > slide_colliders.size()) {
+ if (p_bounce >= slide_colliders.size()) {
slide_colliders.resize(p_bounce + 1);
}