mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Remove unnecessary complexity
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user