Fixed bug in sorting function (sorting could be incorrect when
start was != 0). This might also fix ticket 96. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8016 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -262,7 +262,7 @@ public:
|
||||
{
|
||||
m_contents_vector[i] = m_contents_vector[i-1];
|
||||
i--;
|
||||
} while (i>0 && *t<*(m_contents_vector[i-1]));
|
||||
} while (i>start && *t<*(m_contents_vector[i-1]));
|
||||
m_contents_vector[i]=t;
|
||||
}
|
||||
} // insertionSort
|
||||
|
||||
Reference in New Issue
Block a user