lampuiho Posted February 4, 2016 Share Posted February 4, 2016 Exception in unit userscript line 49: Assertion failure (D:\Projects\TES5Edit\wbImplementation.pas, line 3698) When I run the script on only one record, this error doesn't produce. elements := Tlist.Create; elements.Add(ElementByName(m, e_name)); elements.Add(e); elements.Add(element); c := ConflictAllForElements(elements,false,IsInjected(m)); elements.Free; Usage is as above. Version is 3.1.2 Bug report: http://pastebin.com/5E1pKj3j Any help is appreciated. Link to comment Share on other sites More sharing options...
lampuiho Posted February 4, 2016 Author Share Posted February 4, 2016 Problem solved by using ElementByIndex instead of ElementByName. No idea why it would fail on multiple instances though. EDIT: found out element can be nil when it doesn't contain that record and accessing it through index will return the next element. Link to comment Share on other sites More sharing options...
lmstearn Posted February 4, 2016 Share Posted February 4, 2016 Great! and welcome to AFK! The topic you want is here I trow. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now