B2019-105 Corrected Conversion off RecID

This commit is contained in:
Rich 2019-08-06 19:36:09 +00:00
parent 2200c802e2
commit 2df227fdaa

View File

@ -786,7 +786,7 @@ namespace ROEditor
//Write the RO's record ID //Write the RO's record ID
string RecIdStr = elem.GetAttribute("RecID"); string RecIdStr = elem.GetAttribute("RecID");
RORecID = System.Convert.ToUInt16(RecIdStr,16); RORecID = System.Convert.ToUInt32(RecIdStr,16);// B2019-105 Corrected conversion to 32 bit
fhFST.Write(RORecID); fhFST.Write(RORecID);
@ -805,7 +805,7 @@ namespace ROEditor
//Write the parent ID //Write the parent ID
string ParIDstr = elem.GetAttribute("ParentID"); string ParIDstr = elem.GetAttribute("ParentID");
ParID = System.Convert.ToUInt16(ParIDstr,16); ParID = System.Convert.ToUInt32(ParIDstr,16);// B2019-104 Corrected to 32 Bit
fhFST.Write(ParID); fhFST.Write(ParID);
// not sure why, was in old FST code but no comment! // not sure why, was in old FST code but no comment!