Skip to content

Commit

Permalink
Fix ImmutableByml.GetChangelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchLeaders committed May 6, 2024
1 parent 9208202 commit e96b288
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BymlLibrary/ImmutableByml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ public readonly ref double GetDouble()
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly ref BymlChangelog GetChangelog()
public readonly BymlChangelog GetChangelog()
{
Type.Assert(BymlNodeType.Changelog);
return ref _data[_value.Offset..].Read<BymlChangelog>();
return _value.Changelog;
}

public bool IsNull {
Expand Down
3 changes: 3 additions & 0 deletions src/BymlLibrary/Structures/BymlValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ internal struct BymlValue(int value)

[FieldOffset(0)]
public bool Bool;

[FieldOffset(0)]
public BymlChangelog Changelog;
}

0 comments on commit e96b288

Please sign in to comment.