aboutsummaryrefslogtreecommitdiff
path: root/scene/2d/collision_object_2d.cpp
diff options
context:
space:
mode:
authordamarindra2017-09-24 15:55:45 +0700
committerdamarindra2017-09-24 15:55:45 +0700
commitb786e7877ba176c0cd5d8289abd8b60276dde35b (patch)
tree289927dde7429f9a2abd4b4f4c17e2398bd5a290 /scene/2d/collision_object_2d.cpp
parentdf5dab738a9aa35b75e439732cfc4d23e16789cd (diff)
downloadgodot-b786e7877ba176c0cd5d8289abd8b60276dde35b.tar.gz
godot-b786e7877ba176c0cd5d8289abd8b60276dde35b.tar.zst
godot-b786e7877ba176c0cd5d8289abd8b60276dde35b.zip
Fix: CollisionObject shape owner indexing is inconsistent
Diffstat (limited to 'scene/2d/collision_object_2d.cpp')
-rw-r--r--scene/2d/collision_object_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/collision_object_2d.cpp b/scene/2d/collision_object_2d.cpp
index ce56b85a9..73e5dc602 100644
--- a/scene/2d/collision_object_2d.cpp
+++ b/scene/2d/collision_object_2d.cpp
@@ -82,7 +82,7 @@ uint32_t CollisionObject2D::create_shape_owner(Object *p_owner) {
uint32_t id;
if (shapes.size() == 0) {
- id = 1;
+ id = 0;
} else {
id = shapes.back()->key() + 1;
}