소스 검색

Fix angular velocity default value in TileSet

Value was uninitialized, which lead to undefined behavior.
PouleyKetchoupp 4 년 전
부모
커밋
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;