Skip to content

Commit

Permalink
Cleanup and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
danwilkins committed Jan 15, 2024
1 parent 1ebc948 commit 7eaa865
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions LanternExtractor/Infrastructure/EqBmp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ private static void SetPaletteFlagsField()

_hasCheckedForPaletteFlagsField = true;

// The field needed may be named "flags" or "_flags", dependin on the version of Mono. To be thorough, check for the first Name that contains "lags".
// The field needed may be named "flags" or "_flags", depending on the version of Mono. To be thorough, check for the first Name that contains "lags".
var fields = typeof(ColorPalette).GetFields(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);

for (int i = 0; i < fields.Length; i++)
foreach (var t in fields)
{
if (fields[i].Name.Contains("lags"))
if (t.Name.Contains("lags"))
{
_paletteFlagsField = fields[i];
_paletteFlagsField = t;
break;
}
}
Expand Down

0 comments on commit 7eaa865

Please sign in to comment.