matortheeternal / smash

An application that provides a means of performing automatic conflict resolution between multiple Bethesda Plugin Files for TES and Fallout games.
Other
128 stars 20 forks source link

Sorted array index issue for destination element #50

Closed matortheeternal closed 8 years ago

matortheeternal commented 8 years ago

See craigsummer's post on AFKMods.

matortheeternal commented 8 years ago

Code modification in msAlgorithm's MergeArray function should resolve this issue:

se, de: IwbElement

de := dstCont.Assign(dstCont.ElementCount, se, false);
if bSorted then
    slDst.Insert(dstCont.IndexOf(de), slSrc[i])
else
    slDst.Add(slSrc[i]);