fixed mistake in previous commit

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2310 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2008-09-29 15:27:09 +00:00
parent 3728343cfa
commit 88d5b15747

View File

@ -316,14 +316,11 @@ void World::updateHighscores()
// again by a faster kart in the same race), which might be confusing
// if we ever decide to display a message (e.g. during a race)
unsigned int *index = new unsigned int[m_kart.size()];
for (unsigned int i=0; i<kart_amount; i++ ) // first reset the contents of the array
{
index[i] = 999;
}
const unsigned int kart_amount = m_kart.size();
for (unsigned int i=0; i<kart_amount; i++ )
{
index[i] = 999; // first reset the contents of the array
index[m_kart[i]->getPosition()-1] = i;
}