mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r13168) -Fix (r13072): forgot to 'fix' EngList_SortPartial() together with EngList_Sort()
This commit is contained in:
parent
629c5ce740
commit
9aa69db2e6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user