Skip to content

Commit

Permalink
Add missing const.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Oct 9, 2024
1 parent c63affd commit 5160659
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ void Game::drawBullets(const Display& display) const
bullet.draw(display);
}

void Game::draw(Display& display)
void Game::draw(const Display& display)
{
map_.drawBackground(display);
drawTanks(display);
Expand Down
2 changes: 1 addition & 1 deletion src/Game.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Game

bool isGameEnding(Display& display) const;

void draw(Display& display);
void draw(const Display& display);

private:
void movement(Tank& tank, Direction direction);
Expand Down

0 comments on commit 5160659

Please sign in to comment.