This commit is contained in:
Benau 2019-02-21 10:11:34 +08:00
parent b55ec5cfb8
commit eaddd9c1a3

View File

@ -213,8 +213,7 @@ void RubberBall::computeTarget()
m_restoring_state = false;
}
for(unsigned int p = race_manager->getFinishedKarts()+1;
p < world->getNumKarts()+1; p++)
for (unsigned int p = 1; p < world->getNumKarts() + 1; p++)
{
m_target = world->getKartAtPosition(p);
if(!m_target->isEliminated() && !m_target->hasFinishedRace())