fix ordering error

This commit is contained in:
Mitchell Livingston
2008-05-12 01:32:33 +00:00
parent 63b82714f8
commit f231e13d6c
3 changed files with 6 additions and 2 deletions

View File

@@ -2702,7 +2702,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
[sortedTorrents insertObject: [movingTorrents objectAtIndex: i] atIndex: insertIndex + i];
//redo order values
for (i = insertIndex; i < [sortedTorrents count]; i++)
for (i = 0; i < [sortedTorrents count]; i++)
[[sortedTorrents objectAtIndex: i] setOrderValue: i];
[sortedTorrents release];