diff --git a/include/pong.h b/include/pong.h index d06f888..e27fc79 100644 --- a/include/pong.h +++ b/include/pong.h @@ -79,8 +79,8 @@ private: UDPLogger *_logger; uint8_t _gameState = 0; uint8_t _numBots = 0; - uint8_t _playerMovement[PLAYER_AMOUNT] = {0}; - Coords _paddles[PLAYER_AMOUNT][PADDLE_WIDTH] = {0}; + uint8_t _playerMovement[PLAYER_AMOUNT]; + Coords _paddles[PLAYER_AMOUNT][PADDLE_WIDTH]; Coords _ball = {0, 0}; Coords _ball_old = {0, 0}; int _ballMovement[2] = {0, 0}; diff --git a/include/snake.h b/include/snake.h index 5556506..03c6a21 100644 --- a/include/snake.h +++ b/include/snake.h @@ -76,7 +76,7 @@ private: uint8_t _userDirection = 0; uint8_t _gameState = 0; Coords _head = {0, 0}; - Coords _tail[MAX_TAIL_LENGTH] = {0}; + Coords _tail[MAX_TAIL_LENGTH]; Coords _food = {0, 0}; unsigned long _lastDrawUpdate = 0; unsigned long _lastButtonClick = 0;