From eaddd9c1a357ed83343e8ac67f6689b59a739204 Mon Sep 17 00:00:00 2001 From: Benau Date: Thu, 21 Feb 2019 10:11:34 +0800 Subject: [PATCH] Fix #3718 --- src/items/rubber_ball.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/items/rubber_ball.cpp b/src/items/rubber_ball.cpp index 7268eb280..7ea0e38a6 100644 --- a/src/items/rubber_ball.cpp +++ b/src/items/rubber_ball.cpp @@ -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())