Skip to content

Commit

Permalink
Remove pointless 2024.8 check in FUNC Serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobby233Liu committed Oct 4, 2024
1 parent 2d7fc37 commit 4714de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UndertaleModLib/UndertaleChunks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ private void CheckFor2024_8(UndertaleReader reader)

internal override void SerializeChunk(UndertaleWriter writer)
{
if (Functions is null && (writer.undertaleData.IsVersionAtLeast(2024, 8) || CodeLocals is null))
if (Functions is null && CodeLocals is null)
return;

UndertaleInstruction.Reference<UndertaleFunction>.SerializeReferenceChain(writer, writer.undertaleData.Code, Functions);
Expand Down

0 comments on commit 4714de8

Please sign in to comment.