Skip to content

Commit

Permalink
Fix BG3 story serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Norbyte committed Feb 28, 2021
1 parent 3f437cb commit fec7753
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion LSLib/LS/Story/Story.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,11 @@ public Story Read(Stream stream)
story.Types[2] = OsirisType.MakeBuiltin(2, "INTEGER64");
story.Types[3] = OsirisType.MakeBuiltin(3, "REAL");
story.Types[4] = OsirisType.MakeBuiltin(4, "STRING");
story.Types[5] = OsirisType.MakeBuiltin(5, "GUIDSTRING");
// BG3 defines GUIDSTRING in the .osi file
if (!story.Types.ContainsKey(5))
{
story.Types[5] = OsirisType.MakeBuiltin(5, "GUIDSTRING");
}
}
else
{
Expand Down

0 comments on commit fec7753

Please sign in to comment.