From 9aa69db2e6352bf81df189c70ba2719bbdc38c31 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 18 May 2008 20:01:54 +0000 Subject: (svn r13168) -Fix (r13072): forgot to 'fix' EngList_SortPartial() together with EngList_Sort() --- src/engine.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/engine.cpp b/src/engine.cpp index 096721137..3f361c048 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -138,6 +138,7 @@ void EngList_SortPartial(EngineList *el, EngList_SortTypeFunction compare, uint { 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); } -- cgit v1.2.3-70-g09d2