浏览代码

Fix angular velocity default value in TileSet

Value was uninitialized, which lead to undefined behavior.
PouleyKetchoupp 3 年之前
父节点
当前提交
d46ac42389
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/resources/tile_set.h

+ 1 - 1
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;