Skip to content

Commit

Permalink
Fix crash bug encoding data files
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed Mar 13, 2022
1 parent cf4e545 commit 575d869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EOLib.Localization/Services/EDFLoaderService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private string EncodeDatString(string content, DataFiles whichFile)
List<byte> res = null;

if (whichFile != DataFiles.CurseFilter)
res = _dataEncoderService.SwapMultiples(res, 7);
res = _dataEncoderService.SwapMultiples(Encoding.ASCII.GetBytes(content).ToList(), 7);

res = _dataEncoderService.Interleave(res ?? Encoding.ASCII.GetBytes(content).ToList());

Expand Down

0 comments on commit 575d869

Please sign in to comment.