|
@@ -360,8 +360,14 @@ void Spiel::tick()
|
|
|
if( j < i )
|
|
|
i--;
|
|
|
shots.remove( j );
|
|
|
+ j--;
|
|
|
}
|
|
|
}
|
|
|
+ if( removed )
|
|
|
+ {
|
|
|
+ shots.remove( i );
|
|
|
+ i--;
|
|
|
+ }
|
|
|
}
|
|
|
if( !removed )
|
|
|
{
|
|
@@ -908,7 +914,7 @@ void Spiel::addGeschoss( Geschoss *geschoss )
|
|
|
{
|
|
|
if( zuletztAbgefeuertesGeschoss )
|
|
|
zuletztAbgefeuertesGeschoss->release();
|
|
|
- zuletztAbgefeuertesGeschoss = geschoss;
|
|
|
+ zuletztAbgefeuertesGeschoss = (Geschoss*)geschoss->getThis();
|
|
|
shots.add( geschoss );
|
|
|
}
|
|
|
|