Explorar o código

Fix angular velocity default value in TileSet

Value was uninitialized, which lead to undefined behavior.
PouleyKetchoupp %!s(int64=4) %!d(string=hai) anos
pai
achega
d46ac42389
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;