author | peter1138 |
Wed, 28 May 2008 20:06:00 +0000 | |
changeset 9404 | 965b215dcb09 |
parent 9403 | 8cfca59c11f1 |
child 9405 | 69c042fc13a4 |
--- a/src/engine_gui.cpp Wed May 28 17:29:27 2008 +0000 +++ b/src/engine_gui.cpp Wed May 28 20:06:00 2008 +0000 @@ -214,9 +214,9 @@ */ void EngList_SortPartial(GUIEngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items) { + if (num_items < 2) return; assert(begin < el->Length()); assert(begin + num_items <= el->Length()); - if (num_items < 2) return; qsort(el->Get(begin), num_items, sizeof(*el->Begin()), compare); }