diff --git a/client/battle/BattleProjectileController.cpp b/client/battle/BattleProjectileController.cpp index 45bf477de..6932a9a06 100644 --- a/client/battle/BattleProjectileController.cpp +++ b/client/battle/BattleProjectileController.cpp @@ -225,9 +225,8 @@ void BattleProjectileController::emitStackProjectile(const CStack * stack) void BattleProjectileController::showProjectiles(Canvas & canvas) { - for ( auto it = projectiles.begin(); it != projectiles.end();) + for ( auto projectile: projectiles) { - auto projectile = *it; if ( projectile->playing ) projectile->show(canvas); }