From 7eaa865c45b27517fa61968004aedcd5d7f0e628 Mon Sep 17 00:00:00 2001 From: Daniel Wilkins Date: Mon, 15 Jan 2024 14:41:47 -0800 Subject: [PATCH] Cleanup and fix typo --- LanternExtractor/Infrastructure/EqBmp.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LanternExtractor/Infrastructure/EqBmp.cs b/LanternExtractor/Infrastructure/EqBmp.cs index 28bd0d3..8b734ba 100644 --- a/LanternExtractor/Infrastructure/EqBmp.cs +++ b/LanternExtractor/Infrastructure/EqBmp.cs @@ -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; } }