fixed small bug in SortADTArray
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401710
This commit is contained in:
parent
776e51dbac
commit
81f6856ad9
@ -423,7 +423,7 @@ static cell_t sm_SortADTArray(IPluginContext *pContext, const cell_t *params)
|
|||||||
}
|
}
|
||||||
else if (type == Sort_Float)
|
else if (type == Sort_Float)
|
||||||
{
|
{
|
||||||
if (type == Sort_Ascending)
|
if (order == Sort_Ascending)
|
||||||
{
|
{
|
||||||
qsort(array, arraysize, blocksize * sizeof(cell_t), sort_floats_asc);
|
qsort(array, arraysize, blocksize * sizeof(cell_t), sort_floats_asc);
|
||||||
}
|
}
|
||||||
@ -434,7 +434,7 @@ static cell_t sm_SortADTArray(IPluginContext *pContext, const cell_t *params)
|
|||||||
}
|
}
|
||||||
else if (type == Sort_String)
|
else if (type == Sort_String)
|
||||||
{
|
{
|
||||||
if (type == Sort_Ascending)
|
if (order == Sort_Ascending)
|
||||||
{
|
{
|
||||||
qsort(array, arraysize, blocksize * sizeof(cell_t), sort_adtarray_strings_asc);
|
qsort(array, arraysize, blocksize * sizeof(cell_t), sort_adtarray_strings_asc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user