Corrected an error in parallel_sort and series_sort that does not
move to the start index before relinking the sorted entries. That will cause properties to be lost whenever the start index is greater than zero. Not sure why this hasn't been caught previously, or whether other errors are involved here.
This commit is contained in:
parent
6d23844483
commit
a7e859fcde
|
|
@ -4331,6 +4331,7 @@ void series_sort(struct objlist *ob1, struct nlist *tp1, int idx1, int run)
|
|||
|
||||
// Re-sort list
|
||||
obp = ob1;
|
||||
for (i = 0; i < idx1; i++) obp = obp->next;
|
||||
for (i = 0; i < run; i++) {
|
||||
obp->next = proplist[i].ob;
|
||||
obp = obp->next;
|
||||
|
|
@ -4534,6 +4535,7 @@ void parallel_sort(struct objlist *ob1, struct nlist *tp1, int idx1, int run)
|
|||
|
||||
// Re-sort list
|
||||
obp = ob1;
|
||||
for (i = 0; i < idx1; i++) obp = obp->next;
|
||||
for (i = 0; i < run; i++) {
|
||||
obp->next = proplist[i].ob;
|
||||
obp = obp->next;
|
||||
|
|
|
|||
Loading…
Reference in New Issue