(svn r13168) -Fix (r13072): forgot to 'fix' EngList_SortPartial() together with EngList_Sort()
authorsmatz
Sun, 18 May 2008 20:01:54 +0000
changeset 10624 ab50fd390ac6
parent 10623 556b7922cbec
child 10625 3c1f6a26db71
(svn r13168) -Fix (r13072): forgot to 'fix' EngList_SortPartial() together with EngList_Sort()
src/engine.cpp
--- a/src/engine.cpp	Sun May 18 19:41:47 2008 +0000
+++ b/src/engine.cpp	Sun May 18 20:01:54 2008 +0000
@@ -138,6 +138,7 @@
 {
 	assert(begin <= (uint)el->size());
 	assert(begin + num_items <= (uint)el->size());
+	if (num_items < 2) return;
 	qsort(&((*el)[begin]), num_items, sizeof(EngineID), compare);
 }