From d46ac42389266ee1d2f429f66ac6400338d0f270 Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Thu, 30 Sep 2021 18:04:54 -0700 Subject: Fix angular velocity default value in TileSet Value was uninitialized, which lead to undefined behavior. --- scene/resources/tile_set.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/resources') diff --git a/scene/resources/tile_set.h b/scene/resources/tile_set.h index 42b82957fb..2b4929b3df 100644 --- a/scene/resources/tile_set.h +++ b/scene/resources/tile_set.h @@ -646,7 +646,7 @@ private: }; Vector2 linear_velocity; - float angular_velocity; + float angular_velocity = 0.0; Vector polygons; }; Vector physics; -- cgit v1.2.3