(svn r11075) [NoAI] -Fix: sorting on value did not work as expected. Patch by GeekToo. noai
authorrubidium
Sun, 09 Sep 2007 21:14:29 +0000
branchnoai
changeset 9702 e782b59f1f6a
parent 9701 d1ac22c62f64
child 9703 d2a6acdbd665
(svn r11075) [NoAI] -Fix: sorting on value did not work as expected. Patch by GeekToo.
src/ai/api/ai_abstractlist.cpp
--- a/src/ai/api/ai_abstractlist.cpp	Sun Sep 02 11:17:33 2007 +0000
+++ b/src/ai/api/ai_abstractlist.cpp	Sun Sep 09 21:14:29 2007 +0000
@@ -300,8 +300,8 @@
 			break;
 
 		case SORT_BY_VALUE:
-			if (ascending) this->sorter = new AIAbstractListSorterItemAscending(this);
-			else           this->sorter = new AIAbstractListSorterItemDescending(this);
+			if (ascending) this->sorter = new AIAbstractListSorterValueAscending(this);
+			else           this->sorter = new AIAbstractListSorterValueDescending(this);
 			break;
 
 		default: