mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Fixed infinite loop
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user