diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-29 13:46:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-29 13:46:38 +0100 |
commit | 2f57a11ed9b383706b72783c0d9b1e869774e08a (patch) | |
tree | 1b2b19bbc51b9b6ee71b3d7599092bdaa7b6dbee /scene/resources/tile_set.cpp | |
parent | 9467350f37089eb3f4ef7de683daba28b0c69dec (diff) | |
parent | 8a0a3acceee804b91afe31022cf0310c01162f73 (diff) |
Merge pull request #55785 from nathanfranke/clang-tidy
Diffstat (limited to 'scene/resources/tile_set.cpp')
-rw-r--r-- | scene/resources/tile_set.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp index b5b7d14f96..2854cbe30d 100644 --- a/scene/resources/tile_set.cpp +++ b/scene/resources/tile_set.cpp @@ -5089,7 +5089,7 @@ int TileData::get_collision_polygon_shapes_count(int p_layer_id, int p_polygon_i } Ref<ConvexPolygonShape2D> TileData::get_collision_polygon_shape(int p_layer_id, int p_polygon_index, int shape_index) const { - ERR_FAIL_INDEX_V(p_layer_id, physics.size(), 0); + ERR_FAIL_INDEX_V(p_layer_id, physics.size(), Ref<ConvexPolygonShape2D>()); ERR_FAIL_INDEX_V(p_polygon_index, physics[p_layer_id].polygons.size(), Ref<ConvexPolygonShape2D>()); ERR_FAIL_INDEX_V(shape_index, (int)physics[p_layer_id].polygons[p_polygon_index].shapes.size(), Ref<ConvexPolygonShape2D>()); return physics[p_layer_id].polygons[p_polygon_index].shapes[shape_index]; |