fix: arreglos de codi

This commit is contained in:
2025-03-15 19:03:12 +01:00
parent 4343cbae69
commit cad2c40024
6 changed files with 16 additions and 14 deletions

View File

@@ -1845,7 +1845,7 @@ void Game::updateGameStateEnteringPlayer()
updatePlayers();
updateScoreboard();
updateBackground();
for (auto player : players_)
for (const auto &player : players_)
{
if (player->isPlaying())
{
@@ -2026,7 +2026,7 @@ void Game::checkDebugEvents(const SDL_Event &event)
}
case SDLK_8:
{
for (auto player : players_)
for (const auto &player : players_)
{
if (player->isPlaying())
{