diff --git a/src/spaceObjects/planet.cpp b/src/spaceObjects/planet.cpp index 68299497a0..1cb870b32a 100644 --- a/src/spaceObjects/planet.cpp +++ b/src/spaceObjects/planet.cpp @@ -116,6 +116,7 @@ Planet::Planet() cloud_texture = ""; atmosphere_texture = ""; atmosphere_color = sf::Color(0, 0, 0); + atmosphere_size = 0; distance_from_movement_plane = 0; axial_rotation_time = 0.0; orbit_target_id = -1; diff --git a/src/spaceObjects/playerSpaceship.h b/src/spaceObjects/playerSpaceship.h index 253c41516c..0339451354 100644 --- a/src/spaceObjects/playerSpaceship.h +++ b/src/spaceObjects/playerSpaceship.h @@ -167,7 +167,7 @@ class PlayerSpaceship : public SpaceShip EAlertLevel alert_level; - int32_t linked_science_probe_id; + int32_t linked_science_probe_id = -1; PlayerSpaceship(); virtual ~PlayerSpaceship();