summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2021-09-30 18:04:54 -0700
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2021-09-30 18:04:54 -0700
commitd46ac42389266ee1d2f429f66ac6400338d0f270 (patch)
tree35fc855ad0d1b7558b44cf397cc25dd410cae1c5 /scene/resources
parent77721b35ba21f2e7e8bb42cf415fccb018517843 (diff)
Fix angular velocity default value in TileSet
Value was uninitialized, which lead to undefined behavior.
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/tile_set.h2
1 files changed, 1 insertions, 1 deletions
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<PolygonShapeTileData> polygons;
};
Vector<PhysicsLayerTileData> physics;