Fix accumulatedWeight and iterate priorities in the right order.
This commit is contained in:
parent
9fd6e76322
commit
53a2499381
2 changed files with 9 additions and 6 deletions
|
@ -132,12 +132,12 @@
|
|||
return weight;
|
||||
}
|
||||
|
||||
- (void)setAccumulatedWeight: (uint16_t)accumulatedWeight_
|
||||
- (void)setAccumulatedWeight: (uint32_t)accumulatedWeight_
|
||||
{
|
||||
accumulatedWeight = accumulatedWeight_;
|
||||
}
|
||||
|
||||
- (uint16_t)accumulatedWeight
|
||||
- (uint32_t)accumulatedWeight
|
||||
{
|
||||
return accumulatedWeight;
|
||||
}
|
||||
|
@ -326,7 +326,7 @@
|
|||
return nil;
|
||||
|
||||
if (listIter == NULL)
|
||||
listIter = [list lastListObject];
|
||||
listIter = [list firstListObject];
|
||||
|
||||
if (listIter == NULL)
|
||||
return nil;
|
||||
|
@ -362,7 +362,7 @@
|
|||
[subListCopy release];
|
||||
subListCopy = nil;
|
||||
|
||||
listIter = listIter->previous;
|
||||
listIter = listIter->next;
|
||||
|
||||
if (listIter == NULL)
|
||||
done = YES;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue