diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-09-13 15:07:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-13 15:07:17 +0200 |
commit | c2741e23858d77892bbade2fc3406a7d633d9e4b (patch) | |
tree | 11ae079eaf74dbf9f7f9661d7033e4d7fe47c2a7 /scene/3d | |
parent | 06138bf18c25a8c5f7e2e5bb1ebd9dcf0b2f28dd (diff) | |
parent | 6e0892f223ba2092f4b99d08eeeae4870b88dc95 (diff) |
Merge pull request #11069 from aroncds/master
KinematicBody2D api most friendlier
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/physics_body.cpp | 2 |
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); } |