fixed small bug in SortADTArray

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401710
This commit is contained in:
David Anderson 2007-11-20 04:36:38 +00:00
parent 776e51dbac
commit 81f6856ad9

View File

@ -423,7 +423,7 @@ static cell_t sm_SortADTArray(IPluginContext *pContext, const cell_t *params)
}
else if (type == Sort_Float)
{
if (type == Sort_Ascending)
if (order == Sort_Ascending)
{
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)
{
if (type == Sort_Ascending)
if (order == Sort_Ascending)
{
qsort(array, arraysize, blocksize * sizeof(cell_t), sort_adtarray_strings_asc);
}