Commit a0b9cea7 authored by cutealien's avatar cutealien

Fix recently introduced bug that caused irrlicht to sort the array on each...

Fix recently introduced bug that caused irrlicht to sort the array on each search (instead of just when unsorted).
Also test 33 writeImageToFile currently fails when compiled with optimizations, but probably the test needs to lower requiredMatch.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3063 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 28a04fbd
......@@ -377,7 +377,7 @@ public:
O(n*log n) in worst case. */
void sort()
{
if (!is_sorted || used>1)
if (!is_sorted && used>1)
heapsort(data, used);
is_sorted = true;
}
......
Test suite pass at GMT Sun Dec 20 16:52:22 2009
Test suite pass at GMT Mon Dec 21 13:21:36 2009
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment