From 2a4570f6c695482b288d06e387aaf5a5b46f8841 Mon Sep 17 00:00:00 2001 From: auria Date: Sun, 18 Jul 2010 15:47:47 +0000 Subject: [PATCH] Fixed warning git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5693 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/modes/world.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;