Remove unnecessary complexity

This commit is contained in:
Matt Nadareski
2020-07-27 15:21:59 -07:00
parent 5e1a10c797
commit 22f8fb03e9
13 changed files with 308 additions and 67 deletions

View File

@@ -613,10 +613,10 @@ namespace SabreTools.Library.DatItems
/// <summary>
/// Get the value of that field as a string, if possible
/// </summary>
public string GetField(Field field, bool[] excludeFields)
public string GetField(Field field, List<Field> excludeFields)
{
// If the field is to be excluded, return empty string
if (excludeFields[(int)field])
if (excludeFields.Contains(field))
return string.Empty;
string fieldValue = null;