From a89992fb7cfdd738b9a2839d7cf72609fffb6d59 Mon Sep 17 00:00:00 2001 From: Matthew Sitton Date: Sat, 16 Apr 2022 05:17:07 -0500 Subject: [PATCH] Fix writing bug causing incorrect chunk length --- BChartWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BChartWriter.cs b/BChartWriter.cs index db71141..812541f 100644 --- a/BChartWriter.cs +++ b/BChartWriter.cs @@ -227,7 +227,7 @@ public static void WriteDifficulty(Stream stream, Difficulty diff, Chart chart) { void WriteData(Stream stre) { - stream.WriteByte((byte)diff); + stre.WriteByte((byte)diff); int i = 0; foreach (var ev in chart.chartObjects) {