summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-09-13 15:07:17 +0200
committerGitHub <noreply@github.com>2017-09-13 15:07:17 +0200
commitc2741e23858d77892bbade2fc3406a7d633d9e4b (patch)
tree11ae079eaf74dbf9f7f9661d7033e4d7fe47c2a7 /scene/3d
parent06138bf18c25a8c5f7e2e5bb1ebd9dcf0b2f28dd (diff)
parent6e0892f223ba2092f4b99d08eeeae4870b88dc95 (diff)
Merge pull request #11069 from aroncds/master
KinematicBody2D api most friendlier
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);
}