Fix #10377, Fix 94167df: bad sorting of rail vehicles when primary variant is missing

This commit is contained in:
Rubidium
2023-01-19 20:07:10 +01:00
committed by rubidium42
parent 7d502e2857
commit 8aeef665c7
3 changed files with 6 additions and 11 deletions

View File

@@ -337,7 +337,7 @@ void EngList_Sort(GUIEngineList *el, EngList_SortTypeFunction compare)
* @param begin start of sorting
* @param num_items count of items to be sorted
*/
void EngList_SortPartial(GUIEngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items)
void EngList_SortPartial(GUIEngineList *el, EngList_SortTypeFunction compare, size_t begin, size_t num_items)
{
if (num_items < 2) return;
assert(begin < el->size());