diff --git a/src/modes/world.cpp b/src/modes/world.cpp index f66f85d60..815317e4a 100644 --- a/src/modes/world.cpp +++ b/src/modes/world.cpp @@ -573,12 +573,13 @@ Kart *World::getPlayerKart(unsigned int n) const Kart *World::getLocalPlayerKart(unsigned int n) const { int count=-1; - for(unsigned int i=0; igetCamera() && m_karts[i]->getController()->isPlayerController()) { count++; - if(count==n) return m_karts[i]; + if(count == (int)n) return m_karts[i]; } } return NULL;