Skip to content

Commit

Permalink
Fix valgrind warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
StarryWisdom authored and daid committed Aug 19, 2020
1 parent c331d33 commit bbbc845
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/spaceObjects/planet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/spaceObjects/playerSpaceship.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bbbc845

Please sign in to comment.