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:
parent
3728343cfa
commit
88d5b15747
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user