Skip to content

Commit

Permalink
Bugfix: output symbol count can differ from original symbol count
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadler2 committed Dec 25, 2020
1 parent 3d09c28 commit 5ee3d3c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kanimal/Writer/KanimWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ public void WriteBuild(Stream output)
writer.Write("BILD".ToCharArray());
writer.Write(10); // build version
Logger.Debug("version=10");
writer.Write(BuildData.SymbolCount);
Logger.Debug($"symbols={BuildData.SymbolCount}");
writer.Write(BuildData.Symbols.Count);
Logger.Debug($"symbols={BuildData.Symbols.Count}");
writer.Write(BuildData.FrameCount);
Logger.Debug($"frames={BuildData.FrameCount}");
writer.WritePString(BuildData.Name);
Logger.Debug($"name={BuildData.Name}");
for (var i = 0; i < BuildData.SymbolCount; i++)

for (var i = 0; i < BuildData.Symbols.Count; i++)
{
var symbol = BuildData.Symbols[i];
Logger.Debug(
Expand Down

0 comments on commit 5ee3d3c

Please sign in to comment.