From baa92252d374c73bf5fd926d04af4c591a4e0a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 27 May 2025 13:51:04 +0200 Subject: [PATCH] TileSet: Fix `-Wmaybe-uninitialized` warning on CompatibilityShapeData --- scene/resources/2d/tile_set.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/resources/2d/tile_set.h b/scene/resources/2d/tile_set.h index f108ff399eb..ce46c546822 100644 --- a/scene/resources/2d/tile_set.h +++ b/scene/resources/2d/tile_set.h @@ -151,8 +151,8 @@ class TileSet : public Resource { private: struct CompatibilityShapeData { Vector2i autotile_coords; - bool one_way; - float one_way_margin; + bool one_way = false; + float one_way_margin = 0.0f; #ifndef PHYSICS_2D_DISABLED Ref shape; #endif // PHYSICS_2D_DISABLED