mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fixed infinite loop
This commit is contained in:
parent
99e5569ab5
commit
55d0f0ad9f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user