diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-11-04 16:22:41 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-11-04 16:22:41 +0300 |
commit | eded7b3c27dd895a855ce710b1eb24d9d712bc2b (patch) | |
tree | 87aedc5709aee40f4fa7748a3ad649b7bf9de1be | |
parent | 0447c93479c398bb7b6cd3fb55a3efd94b87195f (diff) |
Minor fix
-rw-r--r-- | UnifFile.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UnifFile.cs b/UnifFile.cs index 58d25bb..a0cb98c 100644 --- a/UnifFile.cs +++ b/UnifFile.cs @@ -34,7 +34,7 @@ namespace com.clusterrr.Famicom.Containers get
{
if (key.Length != 4) throw new ArgumentException("UNIF data block key must be 4 characters long");
- if (!fields.ContainsKey(key)) throw new IndexOutOfRangeException($"There is not {key} field");
+ if (!ContainsField(key)) throw new IndexOutOfRangeException($"There is no {key} field");
return Array.AsReadOnly(fields[key]);
}
set
|