Skip to content

Commit

Permalink
Fix Char.lst parser
Browse files Browse the repository at this point in the history
  • Loading branch information
marcussacana committed Aug 24, 2020
1 parent 43b8169 commit e46eff9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions StringReloads/Engine/Initializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ private void BuildCache(SRL Engine)
{
foreach (string Line in File.ReadAllLines(CharsFile))
{
if (!Line.Contains("=") || string.IsNullOrWhiteSpace(Line))
if (!Line.Contains('=') || string.IsNullOrWhiteSpace(Line))
continue;

string PartA = Line.Substring(0, Line.IndexOf("="));
string PartB = Line.Substring(Line.IndexOf("=") + 1);
string PartA = Line.Substring(0, Line.IndexOf('='));
string PartB = Line.Substring(Line.IndexOf('=') + 1);

if (PartA.Length > 1)
PartA = PartA.Trim();
Expand Down

0 comments on commit e46eff9

Please sign in to comment.