From 81f6856ad9b12e524287c964371af27d5b4aa8ba Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Nov 2007 04:36:38 +0000 Subject: [PATCH] fixed small bug in SortADTArray --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401710 --- core/smn_sorting.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/smn_sorting.cpp b/core/smn_sorting.cpp index 9bf9426d..e300e282 100644 --- a/core/smn_sorting.cpp +++ b/core/smn_sorting.cpp @@ -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); }