Removed compiler warning.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2372 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2008-10-24 04:39:52 +00:00
parent 03bc64d2e9
commit f2f09deff8

View File

@@ -320,7 +320,7 @@ void World::updateHighscores()
for (unsigned int i=0; i<kart_amount; i++ )
{
const int pos = m_kart[i]->getPosition()-1;
if(pos < 0 || pos >= kart_amount) continue; // wrong position
if(pos < 0 || pos >= (int)kart_amount) continue; // wrong position
index[pos] = i;
}