Skip to content

Commit

Permalink
Initialize values in TankStats.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Oct 7, 2024
1 parent 85dbb40 commit 60fa6e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/TankStats.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

struct TankStats
{
int attackPower_;
int shield_;
int speed_;
int lives_;
int attackPower_{0};
int shield_{0};
int speed_{0};
int lives_{0};
};

0 comments on commit 60fa6e3

Please sign in to comment.