From 60fa6e3ffe21005c722ed55fee07790ba240e84b Mon Sep 17 00:00:00 2001 From: przemek83 <4788832+przemek83@users.noreply.github.com> Date: Mon, 7 Oct 2024 13:44:28 +0200 Subject: [PATCH] Initialize values in TankStats. --- src/TankStats.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TankStats.h b/src/TankStats.h index f12db64..9c94589 100644 --- a/src/TankStats.h +++ b/src/TankStats.h @@ -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}; };