Skip to content

Commit baa9225

Browse files
committed
TileSet: Fix -Wmaybe-uninitialized warning on CompatibilityShapeData
1 parent 6c9765d commit baa9225

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scene/resources/2d/tile_set.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ class TileSet : public Resource {
151151
private:
152152
struct CompatibilityShapeData {
153153
Vector2i autotile_coords;
154-
bool one_way;
155-
float one_way_margin;
154+
bool one_way = false;
155+
float one_way_margin = 0.0f;
156156
#ifndef PHYSICS_2D_DISABLED
157157
Ref<Shape2D> shape;
158158
#endif // PHYSICS_2D_DISABLED

0 commit comments

Comments
 (0)