mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 18:39:10 +00:00
(svn r13168) -Fix (r13072): forgot to 'fix' EngList_SortPartial() together with EngList_Sort()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user